Class DiretoServidor

  • All Implemented Interfaces:
    Servidor

    public class DiretoServidor
    extends java.lang.Object
    implements Servidor
    Servidor que estabelece enlace com seus Consumidores através da memória local.
    • Constructor Detail

      • DiretoServidor

        public DiretoServidor()
    • Method Detail

      • aceitar

        public Consumidor aceitar()
                           throws java.io.IOException
        Description copied from interface: Servidor
        Espera por um novo Consumidor.
        Specified by:
        aceitar in interface Servidor
        Throws:
        java.io.IOException
      • novoConsumidor

        public Consumidor novoConsumidor()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • isAberto

        public boolean isAberto()
        Specified by:
        isAberto in interface Servidor
      • fechar

        public void fechar()
                    throws java.io.IOException
        Specified by:
        fechar in interface Servidor
        Throws:
        java.io.IOException