Class AcceptorLazyImpl

    • Constructor Detail

      • AcceptorLazyImpl

        public AcceptorLazyImpl​(ORB orb,
                                int port,
                                java.lang.String name,
                                java.lang.String type)
    • Method Detail

      • getAcceptedSocket

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

        public java.nio.channels.SelectableChannel getChannel()
      • 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.
        Returns:
        true when it performs initializatin actions (typically the first call.
      • close

        public void close()
        Description copied from interface: Acceptor
        Close the Acceptor.
      • getServerSocket

        public java.net.ServerSocket getServerSocket()
      • doWork

        public void doWork()
        Description copied from interface: Work
        This method denotes the actual work that is done by the work item.
      • 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
        Overrides:
        shouldRegisterAcceptEvent in class AcceptorBase
        Returns:
        true if the Acceptor should be registered with a Selector.