org.eclipse.jetty.io.nio
类 NetworkTrafficSelectChannelEndPoint
java.lang.Object
org.eclipse.jetty.io.nio.ChannelEndPoint
org.eclipse.jetty.io.nio.SelectChannelEndPoint
org.eclipse.jetty.io.nio.NetworkTrafficSelectChannelEndPoint
- 所有已实现的接口:
- AsyncEndPoint, ConnectedEndPoint, EndPoint
public class NetworkTrafficSelectChannelEndPoint
- extends SelectChannelEndPoint
| 从类 org.eclipse.jetty.io.nio.SelectChannelEndPoint 继承的方法 |
asyncDispatch, blockReadable, blockWritable, cancelTimeout, checkIdleTimestamp, close, dispatch, flush, getConnection, getIdleTimestamp, getSelectionKey, getSelectManager, getSelectSet, handle, hasProgressed, isCheckForIdle, isWritable, notIdle, onIdleExpired, schedule, scheduleTimeout, scheduleWrite, setCheckForIdle, setConnection, setMaxIdleTime, toString, undispatch |
| 从类 org.eclipse.jetty.io.nio.ChannelEndPoint 继承的方法 |
flush, getChannel, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isInputShutdown, isOpen, isOutputShutdown, shutdownChannelInput, shutdownChannelOutput, shutdownInput, shutdownOutput |
| 从接口 org.eclipse.jetty.io.EndPoint 继承的方法 |
flush, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isInputShutdown, isOpen, isOutputShutdown, shutdownInput, shutdownOutput |
NetworkTrafficSelectChannelEndPoint
public NetworkTrafficSelectChannelEndPoint(SocketChannel channel,
SelectorManager.SelectSet selectSet,
SelectionKey key,
int maxIdleTime,
List<NetworkTrafficListener> listeners)
throws IOException
- 抛出:
IOException
fill
public int fill(Buffer buffer)
throws IOException
- 从接口
EndPoint 复制的描述
- Fill the buffer from the current putIndex to it's capacity from whatever
byte source is backing the buffer. The putIndex is increased if bytes filled.
The buffer may chose to do a compact before filling.
- 指定者:
- 接口
EndPoint 中的 fill - 覆盖:
- 类
SelectChannelEndPoint 中的 fill
- 返回:
- an
int value indicating the number of bytes
filled or -1 if EOF is reached.
- 抛出:
EofException - If input is shutdown or the endpoint is closed.
IOException
flush
public int flush(Buffer buffer)
throws IOException
- 从接口
EndPoint 复制的描述
- Flush the buffer from the current getIndex to it's putIndex using whatever byte
sink is backing the buffer. The getIndex is updated with the number of bytes flushed.
Any mark set is cleared.
If the entire contents of the buffer are flushed, then an implicit empty() is done.
- 指定者:
- 接口
EndPoint 中的 flush - 覆盖:
- 类
SelectChannelEndPoint 中的 flush
- 参数:
buffer - The buffer to flush. This buffers getIndex is updated.
- 返回:
- the number of bytes written
- 抛出:
EofException - If the endpoint is closed or output is shutdown.
IOException
gatheringFlush
protected int gatheringFlush(Buffer header,
ByteBuffer bbuf0,
Buffer buffer,
ByteBuffer bbuf1)
throws IOException
- 覆盖:
- 类
ChannelEndPoint 中的 gatheringFlush
- 抛出:
IOException
notifyOpened
public void notifyOpened()
notifyIncoming
public void notifyIncoming(Buffer buffer,
int read)
notifyOutgoing
public void notifyOutgoing(Buffer buffer,
int position,
int written)
notifyClosed
public void notifyClosed()
Copyright © 2013. All Rights Reserved.