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 Context
public SelectionKey getSelectionKey()
getSelectionKey
in interface Context
public void handleRead()
handleRead
in interface Context
public void handleWrite()
handleWrite
in interface Context
public void handleSetReadInterest()
handleSetReadInterest
in interface Context
public void removeWriteInterest(boolean restoreReadInterest)
removeWriteInterest
in interface IWriteInterestManager
public void setWriteInterest()
setWriteInterest
in interface IWriteInterestManager
public void closeAndDisconnect()
closeAndDisconnect
in interface Context
Copyright © GigaSpaces.