java.lang.Object
org.eclipse.jetty.io.IdleTimeout
org.eclipse.jetty.io.AbstractEndPoint
org.eclipse.jetty.quic.common.QuicStreamEndPoint
- All Implemented Interfaces:
Closeable,AutoCloseable,org.eclipse.jetty.io.EndPoint
public class QuicStreamEndPoint
extends org.eclipse.jetty.io.AbstractEndPoint
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.EndPoint
org.eclipse.jetty.io.EndPoint.Pipe, org.eclipse.jetty.io.EndPoint.SslSessionData, org.eclipse.jetty.io.EndPoint.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.io.EndPoint
EOF -
Constructor Summary
ConstructorsConstructorDescriptionQuicStreamEndPoint(org.eclipse.jetty.util.thread.Scheduler scheduler, QuicSession session, long streamId) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintfill(ByteBuffer buffer) voidfillInterested(org.eclipse.jetty.util.Callback callback) booleanflush(ByteBuffer... buffers) org.eclipse.jetty.io.EndPoint.SslSessionDatalongbooleanprotected voidvoidprotected voidbooleanvoidvoidopened()voidshutdownInput(long error) voidshutdownOutput(long error) toString()booleantryFillInterested(org.eclipse.jetty.util.Callback callback) voidwrite(org.eclipse.jetty.util.Callback callback, List<ByteBuffer> buffers, boolean last) Methods inherited from class org.eclipse.jetty.io.AbstractEndPoint
close, close, doClose, doShutdownInput, doShutdownOutput, getConnection, getCreatedTimeStamp, getFillInterest, getLocalAddress, getRemoteAddress, getWriteFlusher, isFillInterested, isInputShutdown, isOpen, isOutputShutdown, onClose, onIdleExpired, onOpen, reset, setConnection, shutdownInput, shutdownOutput, toConnectionString, toEndPointString, upgrade, writeMethods inherited from class org.eclipse.jetty.io.IdleTimeout
checkIdleTimeout, getIdleFor, getIdleTimeout, getScheduler, notIdle, setIdleTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.io.EndPoint
getIdleTimeout, isSecure, receive, send, setIdleTimeout, write
-
Constructor Details
-
QuicStreamEndPoint
public QuicStreamEndPoint(org.eclipse.jetty.util.thread.Scheduler scheduler, QuicSession session, long streamId)
-
-
Method Details
-
opened
public void opened() -
closed
-
getQuicSession
-
getStreamId
public long getStreamId() -
getLocalSocketAddress
- Specified by:
getLocalSocketAddressin interfaceorg.eclipse.jetty.io.EndPoint- Specified by:
getLocalSocketAddressin classorg.eclipse.jetty.io.AbstractEndPoint
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddressin interfaceorg.eclipse.jetty.io.EndPoint- Specified by:
getRemoteSocketAddressin classorg.eclipse.jetty.io.AbstractEndPoint
-
isStreamFinished
public boolean isStreamFinished() -
shutdownInput
public void shutdownInput(long error) -
shutdownOutput
public void shutdownOutput(long error) -
close
-
onClose
- Specified by:
onClosein interfaceorg.eclipse.jetty.io.EndPoint- Overrides:
onClosein classorg.eclipse.jetty.io.AbstractEndPoint
-
fill
- Throws:
IOException
-
flush
- Throws:
IOException
-
write
-
getTransport
-
getSslSessionData
public org.eclipse.jetty.io.EndPoint.SslSessionData getSslSessionData() -
onWritable
public void onWritable() -
onReadable
public boolean onReadable()- Returns:
- whether this endPoint is interested in reads
-
fillInterested
public void fillInterested(org.eclipse.jetty.util.Callback callback) - Specified by:
fillInterestedin interfaceorg.eclipse.jetty.io.EndPoint- Overrides:
fillInterestedin classorg.eclipse.jetty.io.AbstractEndPoint
-
tryFillInterested
public boolean tryFillInterested(org.eclipse.jetty.util.Callback callback) - Specified by:
tryFillInterestedin interfaceorg.eclipse.jetty.io.EndPoint- Overrides:
tryFillInterestedin classorg.eclipse.jetty.io.AbstractEndPoint
-
onIncompleteFlush
protected void onIncompleteFlush()- Specified by:
onIncompleteFlushin classorg.eclipse.jetty.io.AbstractEndPoint
-
needsFillInterest
protected void needsFillInterest()- Specified by:
needsFillInterestin classorg.eclipse.jetty.io.AbstractEndPoint
-
toString
- Overrides:
toStringin classorg.eclipse.jetty.io.AbstractEndPoint
-