Class ParserTable.TestAcceptor1

  • All Implemented Interfaces:
    Acceptor
    Enclosing class:
    ParserTable

    public static final class ParserTable.TestAcceptor1
    extends java.lang.Object
    implements Acceptor
    • Constructor Detail

      • TestAcceptor1

        public TestAcceptor1()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • initialize

        public boolean initialize()
        Description copied from interface: Acceptor
        Used to initialize an Acceptor. For example, initialization may mean to create a ServerSocketChannel. Note: this must be prepared to be be called multiple times.
        Specified by:
        initialize in interface Acceptor
        Returns:
        true when it performs initializatin actions (typically the first call.
      • initialized

        public boolean initialized()
        Description copied from interface: Acceptor
        Used to determine if an Acceptor has been initialized.
        Specified by:
        initialized in interface Acceptor
        Returns:
        true. if the Acceptor has been initialized.
      • shouldRegisterAcceptEvent

        public boolean shouldRegisterAcceptEvent()
        Description copied from interface: Acceptor
        Used to determine if the Acceptor should register with a Selector to handle accept events. For example, this may be false in the case of Solaris Doors which do not actively listen.
        Specified by:
        shouldRegisterAcceptEvent in interface Acceptor
        Returns:
        true if the Acceptor should be registered with a Selector.
      • setUseSelectThreadForConnections

        public void setUseSelectThreadForConnections​(boolean x)
      • shouldUseSelectThreadForConnections

        public boolean shouldUseSelectThreadForConnections()
      • setUseWorkerThreadForConnections

        public void setUseWorkerThreadForConnections​(boolean x)
      • shouldUseWorkerThreadForConnections

        public boolean shouldUseWorkerThreadForConnections()
      • getAcceptedSocket

        public java.net.Socket getAcceptedSocket()
        Description copied from interface: Acceptor
        Blocks until a new Socket is available on the acceptor's port.
        Specified by:
        getAcceptedSocket in interface Acceptor
        Returns:
        the new socket
      • processSocket

        public void processSocket​(java.net.Socket socket)
        Description copied from interface: Acceptor
        Handle a newly accepted Socket.
        Specified by:
        processSocket in interface Acceptor
        Parameters:
        socket - socket to handle
      • close

        public void close()
        Description copied from interface: Acceptor
        Close the Acceptor.
        Specified by:
        close in interface Acceptor
      • getObjectAdapterId

        public java.lang.String getObjectAdapterId()
      • getObjectAdapterManagerId

        public java.lang.String getObjectAdapterManagerId()
      • getServerSocket

        public java.net.ServerSocket getServerSocket()
        Specified by:
        getServerSocket in interface Acceptor
      • getPort

        public int getPort()
        Specified by:
        getPort in interface Acceptor
      • getName

        public java.lang.String getName()
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface Acceptor
      • isLazy

        public boolean isLazy()
        Specified by:
        isLazy in interface Acceptor