Package org.jppf.nio
Interface NioChannelHandler
- All Known Subinterfaces:
NioContext
- All Known Implementing Classes:
AbstractNioContext,AcceptorContext
public interface NioChannelHandler
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionintvoidsetInterestOps(int interestOps) Set the socket channel's interest ops.voidsetSelectionKey(SelectionKey selectionKey) Set the associated selection key.
-
Method Details
-
getInterestOps
int getInterestOps()- Returns:
- the socket channel's interest ops.
-
setInterestOps
void setInterestOps(int interestOps) Set the socket channel's interest ops.- Parameters:
interestOps- the interest ops to set.
-
getSelectionKey
SelectionKey getSelectionKey()- Returns:
- the associated selection key.
-
setSelectionKey
Set the associated selection key.- Parameters:
selectionKey- the key to set.
-