Package org.jivesoftware.smack
Class SmackReactor
- java.lang.Object
-
- org.jivesoftware.smack.SmackReactor
-
public class SmackReactor extends java.lang.ObjectThe SmackReactor for non-blocking I/O.Highlights include:
- Multiple reactor threads
- Scheduled actions
) ) ) ( ( ( ) ) ) (~~~~~~~~~) | Smack | |Reactor| I _._ I /' `\ I | | f | |~~~~~~~~~~~~~~| .' | | # # # # | '______|___|___________###|
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSmackReactor.ChannelSelectedCallbackstatic classSmackReactor.SelectionKeyAttachment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.channels.SelectionKeyregisterWithSelector(java.nio.channels.SelectableChannel channel, int ops, SmackReactor.ChannelSelectedCallback callback)voidsetInterestOps(java.nio.channels.SelectionKey selectionKey, int interestOps)voidsetReactorThreadCount(int reactorThreadCount)
-
-
-
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)
-
setReactorThreadCount
public void setReactorThreadCount(int reactorThreadCount)
-
-