Class SmackReactor


  • public class SmackReactor
    extends java.lang.Object
    The SmackReactor for non-blocking I/O.

    Highlights include:

    • Multiple reactor threads
    • Scheduled actions
    
               ) ) )
            ( ( (
          ) ) )
       (~~~~~~~~~)
        | Smack |
        |Reactor|
        I      _._
        I    /'   `\
        I   |       |
        f   |   |~~~~~~~~~~~~~~|
      .'    |   | #   #   #  # |
     '______|___|___________###|
     
    • Method Detail

      • registerWithSelector

        public java.nio.channels.SelectionKey registerWithSelector​(java.nio.channels.SelectableChannel channel,
                                                                   int ops,
                                                                   SmackReactor.ChannelSelectedCallback callback)
                                                            throws java.nio.channels.ClosedChannelException
        Throws:
        java.nio.channels.ClosedChannelException
      • setInterestOps

        public void setInterestOps​(java.nio.channels.SelectionKey selectionKey,
                                   int interestOps)