public class AsyncContext extends Object implements Context
| Constructor and Description |
|---|
AsyncContext(ConnectionPool connPool,
ClientHandler handler,
RequestPacket packet,
LRMIFuture result,
CPeer cpeer,
IRemoteClassProviderProvider remoteConnection,
ClassLoader contextClassLoader,
LRMIRemoteClassLoaderIdentifier remoteClassLoaderIdentifier,
String monitoringId,
ClientPeerWatchedObjectsContext watchedObjectContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release the CPeer when called on un register from the Selector
|
void |
close(Throwable exception) |
void |
closeAndDisconnect() |
SelectionKey |
getSelectionKey() |
void |
handleRead() |
void |
handleSetReadInterest() |
void |
handleWrite() |
void |
removeWriteInterest(boolean restoreReadInterest) |
void |
setSelectionKey(SelectionKey key) |
void |
setWriteInterest() |
public AsyncContext(ConnectionPool connPool, ClientHandler handler, RequestPacket packet, LRMIFuture result, CPeer cpeer, IRemoteClassProviderProvider remoteConnection, ClassLoader contextClassLoader, LRMIRemoteClassLoaderIdentifier remoteClassLoaderIdentifier, String monitoringId, ClientPeerWatchedObjectsContext watchedObjectContext)
public void setSelectionKey(SelectionKey key)
setSelectionKey in interface Contextpublic SelectionKey getSelectionKey()
getSelectionKey in interface Contextpublic void handleRead()
handleRead in interface Contextpublic void handleWrite()
handleWrite in interface Contextpublic void handleSetReadInterest()
handleSetReadInterest in interface Contextpublic void removeWriteInterest(boolean restoreReadInterest)
removeWriteInterest in interface IWriteInterestManagerpublic void setWriteInterest()
setWriteInterest in interface IWriteInterestManagerpublic void closeAndDisconnect()
closeAndDisconnect in interface ContextCopyright © GigaSpaces.