Class ManagedSelector

    • Constructor Detail

      • ManagedSelector

        public ManagedSelector​(SelectorManager selectorManager,
                               int id)
    • Method Detail

      • getSelector

        public java.nio.channels.Selector getSelector()
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Starts the managed lifecycle beans in the order they were added.
        Overrides:
        doStart in class ContainerLifeCycle
        Throws:
        java.lang.Exception
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Stops the managed lifecycle beans in the reverse order they were added.
        Overrides:
        doStop in class ContainerLifeCycle
        Throws:
        java.lang.Exception
      • nioSelect

        protected int nioSelect​(java.nio.channels.Selector selector,
                                boolean now)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • select

        protected int select​(java.nio.channels.Selector selector)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • handleSelectFailure

        protected void handleSelectFailure​(java.nio.channels.Selector selector,
                                           java.lang.Throwable failure)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • onSelectFailed

        protected void onSelectFailed​(java.lang.Throwable cause)
      • size

        public int size()
      • endPointOpened

        protected void endPointOpened​(EndPoint endPoint)
      • endPointClosed

        protected void endPointClosed​(EndPoint endPoint)
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Overrides:
        dump in class ContainerLifeCycle
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable