public class SelectChannelEndPoint extends ChannelEndPoint implements ManagedSelector.SelectableEndPoint
SelectorManager.| Constructor and Description |
|---|
SelectChannelEndPoint(SocketChannel channel,
ManagedSelector selector,
SelectionKey key,
Scheduler scheduler,
long idleTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any backing stream associated with the endpoint
|
boolean |
isOpen()
This abstract method should be called to check if idle timeouts
should still be checked.
|
protected void |
needsFillInterest() |
protected void |
onIncompleteFlush() |
void |
onOpen()
Callback method invoked when this
EndPoint is opened. |
Runnable |
onSelected()
Callback method invoked when a read or write events has been
detected by the
ManagedSelector for this endpoint. |
String |
toString() |
void |
updateKey()
Callback method invoked when all the keys selected by the
ManagedSelector for this endpoint have been processed. |
fill, flush, getChannel, getSocket, getTransport, isInputShutdown, isOptimizedForDirectBuffers, isOutputShutdown, shutdownInput, shutdownOutputclose, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getLocalAddress, getRemoteAddress, getWriteFlusher, isFillInterested, onIdleExpired, setConnection, upgrade, writecheckIdleTimeout, getIdleFor, getIdleTimeout, getIdleTimestamp, getScheduler, notIdle, onClose, setIdleTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfill, fillInterested, flush, getConnection, getCreatedTimeStamp, getIdleTimeout, getLocalAddress, getRemoteAddress, getTransport, isFillInterested, isInputShutdown, isOptimizedForDirectBuffers, isOutputShutdown, onClose, setConnection, setIdleTimeout, shutdownOutput, upgrade, writepublic static final Logger LOG
public SelectChannelEndPoint(SocketChannel channel, ManagedSelector selector, SelectionKey key, Scheduler scheduler, long idleTimeout)
protected void needsFillInterest()
needsFillInterest in class ChannelEndPointprotected void onIncompleteFlush()
onIncompleteFlush in class ChannelEndPointpublic Runnable onSelected()
ManagedSelector.SelectableEndPointManagedSelector for this endpoint.onSelected in interface ManagedSelector.SelectableEndPointpublic void updateKey()
ManagedSelector.SelectableEndPointManagedSelector for this endpoint have been processed.updateKey in interface ManagedSelector.SelectableEndPointpublic void close()
EndPointclose in interface Closeableclose in interface AutoCloseableclose in interface EndPointclose in class ChannelEndPointpublic boolean isOpen()
IdleTimeoutisOpen in interface EndPointisOpen in class ChannelEndPointpublic void onOpen()
EndPointCallback method invoked when this EndPoint is opened.
onOpen in interface EndPointonOpen in class AbstractEndPointEndPoint.onClose()public String toString()
toString in class AbstractEndPointCopyright © 1995-2016 Webtide. All Rights Reserved.