private class HTTP2Session.DataEntry extends HTTP2Flusher.Entry
Callback.Completable, Callback.Completing, Callback.Nested
Invocable.InvocationType
Modifier and Type | Field and Description |
---|---|
private int |
dataBytes |
private int |
dataRemaining |
private int |
frameBytes |
private int |
frameRemaining |
frame, stream
__nonBlocking
Modifier | Constructor and Description |
---|---|
private |
DataEntry(DataFrame frame,
IStream stream,
Callback callback) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
generate(ByteBufferPool.Lease lease) |
int |
getDataBytesRemaining() |
int |
getFrameBytesGenerated() |
long |
onFlushed(long bytes) |
void |
succeeded()
Callback invoked when the operation completes.
|
failed, toString
getCallback, getInvocationType
completed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInvocationType, invokeNonBlocking, isNonBlockingInvocation
private int frameBytes
private int frameRemaining
private int dataBytes
private int dataRemaining
public int getFrameBytesGenerated()
getFrameBytesGenerated
in class HTTP2Flusher.Entry
public int getDataBytesRemaining()
getDataBytesRemaining
in class HTTP2Flusher.Entry
protected boolean generate(ByteBufferPool.Lease lease)
generate
in class HTTP2Flusher.Entry
public long onFlushed(long bytes) throws java.io.IOException
onFlushed
in class HTTP2Flusher.Entry
java.io.IOException
public void succeeded()
Callback
Callback invoked when the operation completes.
succeeded
in interface Callback
succeeded
in class Callback.Nested
Callback.failed(Throwable)