An EndPoint implementation on top of a QUIC stream.
The correspondent Connection associated to this QuicStreamEndPoint
parses and generates the protocol specific bytes transported by QUIC.
| Modifier and Type | Field and Description |
|---|---|
| private static final ByteBuffer | |
| private static final Logger | |
| private final QuicSession | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public int | fill(ByteBuffer buffer)
Overrides default org. Fill the passed buffer with data from this endpoint. |
| public void | fillInterested(Callback callback)
Overrides org. Implements org. Requests callback methods to be invoked when a call to |
| public boolean | flush(ByteBuffer... buffers)
Overrides default org. Flush data from the passed header/buffer to this endpoint. |
| public SocketAddress | getLocalSocketAddress()
Overrides default org. Implements abstract org.
|
| public QuicSession | |
| public SocketAddress | getRemoteSocketAddress()
Overrides default org. Implements abstract org.
|
| public long | |
| public Object | |
| public boolean | |
| protected void | |
| public void | onClose(Throwable failure)
Overrides org. Implements org. Callback method invoked when this |
| protected void | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public boolean | tryFillInterested(Callback callback)
Overrides org. Implements org. Requests callback methods to be invoked when a call to |
| public void |
| LAST_FLAG | back to summary |
|---|---|
| private static final ByteBuffer LAST_FLAG | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| session | back to summary |
|---|---|
| private final QuicSession session | |
| streamId | back to summary |
|---|---|
| private final long streamId | |
| QuicStreamEndPoint | back to summary |
|---|---|
| public QuicStreamEndPoint(Scheduler scheduler, QuicSession session, long streamId) | |
| close | back to summary |
|---|---|
| public void close(long error, Throwable failure) | |
| closed | back to summary |
|---|---|
| public void closed(Throwable failure) | |
| fill | back to summary |
|---|---|
| public int fill(ByteBuffer buffer) throws IOException Overrides default org. Doc from org. Fill the passed buffer with data from this endpoint. The bytes are appended to any data already in the buffer by writing from the buffers limit up to it's capacity. The limit is updated to include the filled bytes.
| |
| fillInterested | back to summary |
|---|---|
| public void fillInterested(Callback callback) Overrides org. Implements org. Doc from org. Requests callback methods to be invoked when a call to
| |
| flush | back to summary |
|---|---|
| public boolean flush(ByteBuffer... buffers) throws IOException Overrides default org. Doc from org. Flush data from the passed header/buffer to this endpoint. As many bytes as can be consumed are taken from the header/buffer position up until the buffer limit. The header/buffers position is updated to indicate how many bytes have been consumed.
| |
| getLocalSocketAddress | back to summary |
|---|---|
| public SocketAddress getLocalSocketAddress() Overrides default org. Implements abstract org.
| |
| getQuicSession | back to summary |
|---|---|
| public QuicSession getQuicSession() | |
| getRemoteSocketAddress | back to summary |
|---|---|
| public SocketAddress getRemoteSocketAddress() Overrides default org. Implements abstract org.
| |
| getStreamId | back to summary |
|---|---|
| public long getStreamId() | |
| getTransport | back to summary |
|---|---|
| public Object getTransport() Implements org.
| |
| isStreamFinished | back to summary |
|---|---|
| public boolean isStreamFinished() | |
| needsFillInterest | back to summary |
|---|---|
| protected void needsFillInterest() Implements abstract org.
| |
| onClose | back to summary |
|---|---|
| public void onClose(Throwable failure) Overrides org. Implements org. Doc from org. Callback method invoked when this
| |
| onIncompleteFlush | back to summary |
|---|---|
| protected void onIncompleteFlush() Implements abstract org.
| |
| onReadable | back to summary |
|---|---|
public boolean onReadable()
| |
| onWritable | back to summary |
|---|---|
| public void onWritable() | |
| opened | back to summary |
|---|---|
| public void opened() | |
| shutdownInput | back to summary |
|---|---|
| public void shutdownInput(long error) | |
| shutdownOutput | back to summary |
|---|---|
| public void shutdownOutput(long error) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| tryFillInterested | back to summary |
|---|---|
| public boolean tryFillInterested(Callback callback) Overrides org. Implements org. Doc from org. Requests callback methods to be invoked when a call to
| |
| write | back to summary |
|---|---|
| public void write(Callback callback, List<ByteBuffer> buffers, boolean last) | |