Package org.jivesoftware.smack
Class SmackReactor
- java.lang.Object
-
- org.jivesoftware.smack.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 | |~~~~~~~~~~~~~~| .' | | # # # # | '______|___|___________###|
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SmackReactor.ChannelSelectedCallback
static class
SmackReactor.SelectionKeyAttachment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.channels.SelectionKey
registerWithSelector(java.nio.channels.SelectableChannel channel, int ops, SmackReactor.ChannelSelectedCallback callback)
void
setInterestOps(java.nio.channels.SelectionKey selectionKey, int interestOps)
void
setReactorThreadCount(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)
-
-