| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private volatile ChannelListener | |
| private volatile boolean | |
| private boolean | |
| private final HpackEncoder | |
| private boolean | |
| private final int | |
| private final HeaderMap | |
| private Http2DataStreamSinkChannel. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | channelForciblyClosed()
Overrides io. Called when a channel has been forcibly closed, and data (frames) have already been written. |
| protected SendFrameHeader | |
| private HpackEncoder. | |
| public boolean | flush()
Overrides io. Implements org. Flush any waiting partial send or write. |
| public ChannelListener | |
| public HeaderMap | |
| public Http2DataStreamSinkChannel. | |
| private void | |
| protected void | handleFlushComplete(boolean finalFrame)
Overrides io.
|
| private boolean | |
| protected boolean | |
| public void | |
| public void | |
| public long | write(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs, int The offset within the buffer array of the first buffer from
which bytes are to be retrieved; must be non-negative and no
larger than offset, int srcs.lengthThe maximum number of buffers to be accessed; must be
non-negative and no larger than
length)srcs.length - offsetOverrides io. Implements java. Writes a sequence of bytes to this channel from a subsequence of the given buffers. |
| public long | write(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs)Overrides io. Implements java. Writes a sequence of bytes to this channel from the given buffers. |
| public int | write(ByteBuffer
The buffer from which bytes are to be retrieved src)Overrides io. Implements java. Writes a sequence of bytes to this channel from the given buffer. |
| protected void | |
| public long | writeFinal(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs, int The offset within the buffer array of the first buffer from
which bytes are to be retrieved; must be non-negative and no
larger than srcs.length offset, int The maximum number of buffers to be accessed; must be
non-negative and no larger than
srcs.length - offset length)Overrides io. Implements org. Writes some data to the channel, with the same semantics as
|
| public long | writeFinal(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs)Overrides io. Implements org. Writes some data to the channel, with the same semantics as
|
| public int | writeFinal(ByteBuffer
The data to write src)Overrides io. Implements org. Writes some data to the channel, with the same semantics as
|
| completionListener | back to summary |
|---|---|
| private volatile ChannelListener<Http2DataStreamSinkChannel> completionListener | |
| completionListenerFailure | back to summary |
|---|---|
| private volatile boolean completionListenerFailure | |
| completionListenerReady | back to summary |
|---|---|
| private boolean completionListenerReady | |
| encoder | back to summary |
|---|---|
| private final HpackEncoder encoder | |
| first | back to summary |
|---|---|
| private boolean first | |
| frameType | back to summary |
|---|---|
| private final int frameType | |
| headers | back to summary |
|---|---|
| private final HeaderMap headers | |
| trailersProducer | back to summary |
|---|---|
| private Http2DataStreamSinkChannel. | |
| Http2DataStreamSinkChannel | back to summary |
|---|---|
| pack-priv Http2DataStreamSinkChannel(Http2Channel channel, int streamId, int frameType) | |
| Http2DataStreamSinkChannel | back to summary |
|---|---|
| pack-priv Http2DataStreamSinkChannel(Http2Channel channel, int streamId, HeaderMap headers, int frameType) | |
| channelForciblyClosed | back to summary |
|---|---|
| protected void channelForciblyClosed() throws IOException Overrides io. Doc from io. Called when a channel has been forcibly closed, and data (frames) have already been written. The action this should take is protocol dependent, e.g. for SPDY a RST_STREAM should be sent, for websockets the channel should be closed. By default this will just close the underlying channel
| |
| createFrameHeaderImpl | back to summary |
|---|---|
| protected SendFrameHeader createFrameHeaderImpl() Implements abstract io.
| |
| encodeContinuationFrame | back to summary |
|---|---|
| private HpackEncoder. | |
| flush | back to summary |
|---|---|
| public boolean flush() throws IOException Overrides io. Implements org. Doc from org. Flush any waiting partial send or write. If there is no data to flush, or if the flush completed successfully,
this method will return
| |
| getCompletionListener | back to summary |
|---|---|
| public ChannelListener | |
| getHeaders | back to summary |
|---|---|
| public HeaderMap getHeaders() | |
| getTrailersProducer | back to summary |
|---|---|
| public Http2DataStreamSinkChannel. | |
| handleFailedChannel | back to summary |
|---|---|
| private void handleFailedChannel() | |
| handleFlushComplete | back to summary |
|---|---|
| protected void handleFlushComplete(boolean finalFrame) Overrides io.
| |
| isContinueStatus | back to summary |
|---|---|
| private boolean isContinueStatus() | |
| isFlushRequiredOnEmptyBuffer | back to summary |
|---|---|
| protected boolean isFlushRequiredOnEmptyBuffer() Overrides io. | |
| setCompletionListener | back to summary |
|---|---|
| public void setCompletionListener(ChannelListener<Http2DataStreamSinkChannel> completionListener) | |
| setTrailersProducer | back to summary |
|---|---|
| public void setTrailersProducer(Http2DataStreamSinkChannel. | |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] srcs, int offset, int length) throws IOException Overrides io. Implements java. Doc from java. Writes a sequence of bytes to this channel from a subsequence of the given buffers. An attempt is made to write up to r bytes to this channel, where r is the total number of bytes remaining in the specified subsequence of the given buffer array, that is, srcs[offset].remaining() + srcs[offset+1].remaining() + ... + srcs[offset+length-1].remaining() Suppose that a byte sequence of length n is written, where
Unless otherwise specified, a write operation will return only after writing all of the r requested bytes. Some types of channels, depending upon their state, may write only some of the bytes or possibly none at all. A socket channel in non-blocking mode, for example, cannot write any more bytes than are free in the socket's output buffer. This method may be invoked at any time. If another thread has already initiated a write operation upon this channel, however, then an invocation of this method will block until the first operation is complete.
| |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] srcs) throws IOException Overrides io. Implements java. Doc from java. Writes a sequence of bytes to this channel from the given buffers. An invocation of this method of the form c.write(srcs, 0, srcs.length);
| |
| write | back to summary |
|---|---|
| public int write(ByteBuffer src) throws IOException Overrides io. Implements java. Doc from java. Writes a sequence of bytes to this channel from the given buffer. An attempt is made to write up to r bytes to the channel,
where r is the number of bytes remaining in the buffer, that is,
Suppose that a byte sequence of length n is written, where
Unless otherwise specified, a write operation will return only after writing all of the r requested bytes. Some types of channels, depending upon their state, may write only some of the bytes or possibly none at all. A socket channel in non-blocking mode, for example, cannot write any more bytes than are free in the socket's output buffer. This method may be invoked at any time. If another thread has already initiated a write operation upon this channel, however, then an invocation of this method will block until the first operation is complete.
| |
| writeBeforeHeaderBlock | back to summary |
|---|---|
| protected void writeBeforeHeaderBlock(ByteBuffer buffer) | |
| writeFinal | back to summary |
|---|---|
| public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException Overrides io. Implements org. Doc from org. Writes some data to the channel, with the same semantics as
| |
| writeFinal | back to summary |
|---|---|
| public long writeFinal(ByteBuffer[] srcs) throws IOException Overrides io. Implements org. Doc from org. Writes some data to the channel, with the same semantics as
| |
| writeFinal | back to summary |
|---|---|
| public int writeFinal(ByteBuffer src) throws IOException Overrides io. Implements org. Doc from org. Writes some data to the channel, with the same semantics as
| |
| Modifier and Type | Method and Description |
|---|---|
| public HeaderMap |
| getTrailers | back to summary |
|---|---|
| public HeaderMap getTrailers() | |