Class AbstractStream
java.lang.Object
org.eclipse.jetty.quic.common.AbstractStream
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.quic.api.Stream
Stream.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the expiration time in nanoseconds.long
getId()
Returns the stream id.long
boolean
Returns whether the stream is bidirectional.boolean
isLocal()
Returns whether the stream has been created locally or remotely.protected void
notIdle()
void
setIdleTimeout
(long idleTimeout) void
setListener
(Stream.Listener listener) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.quic.api.Stream
data, dataBlocked, demand, disconnect, getSession, isClosed, isLocallyClosed, isRemotelyClosed, maxData, read, reset, stopSending
-
Constructor Details
-
AbstractStream
protected AbstractStream(long streamId, boolean local)
-
-
Method Details
-
getId
-
isBidirectional
public boolean isBidirectional()Description copied from interface:Stream
Returns whether the stream is bidirectional.
- Specified by:
isBidirectional
in interfaceStream
- Returns:
- whether the stream is bidirectional
-
isLocal
-
getListener
-
setListener
-
getIdleTimeout
public long getIdleTimeout()- Specified by:
getIdleTimeout
in interfaceStream
-
setIdleTimeout
public void setIdleTimeout(long idleTimeout) - Specified by:
setIdleTimeout
in interfaceStream
-
notIdle
protected void notIdle() -
getExpireNanoTime
public long getExpireNanoTime()Description copied from interface:CyclicTimeouts.Expirable
Returns the expiration time in nanoseconds.
The value to return must be calculated taking into account the current nanoTime, for example:
expireNanoTime = NanoTime.now() + timeoutNanos
Returning
Long.MAX_VALUE
indicates that this entity does not expire.- Specified by:
getExpireNanoTime
in interfaceCyclicTimeouts.Expirable
- Returns:
- the expiration time in nanoseconds, or
Long.MAX_VALUE
if this entity does not expire
-
toString
-