Class AbstractStream
java.lang.Object
org.eclipse.jetty.quic.common.AbstractStream
- All Implemented Interfaces:
 CyclicTimeouts.Expirable, Stream
- Direct Known Subclasses:
 QuicheStream
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Stream
Stream.Listener - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionlongReturns the expiration time in nanoseconds.longgetId()Returns the stream id.longbooleanReturns whether the stream is bidirectional.booleanisLocal()Returns whether the stream has been created locally or remotely.protected voidnotIdle()voidsetIdleTimeout(long idleTimeout) voidsetListener(Stream.Listener listener) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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:StreamReturns whether the stream is bidirectional.
- Specified by:
 isBidirectionalin interfaceStream- Returns:
 - whether the stream is bidirectional
 
 - 
isLocal
 - 
getListener
 - 
setListener
 - 
getIdleTimeout
public long getIdleTimeout()- Specified by:
 getIdleTimeoutin interfaceStream
 - 
setIdleTimeout
public void setIdleTimeout(long idleTimeout) - Specified by:
 setIdleTimeoutin interfaceStream
 - 
notIdle
protected void notIdle() - 
getExpireNanoTime
public long getExpireNanoTime()Description copied from interface:CyclicTimeouts.ExpirableReturns the expiration time in nanoseconds.
The value to return must be calculated taking into account the current nanoTime, for example:
expireNanoTime = NanoTime.now() + timeoutNanosReturning
Long.MAX_VALUEindicates that this entity does not expire.- Specified by:
 getExpireNanoTimein interfaceCyclicTimeouts.Expirable- Returns:
 - the expiration time in nanoseconds, or 
Long.MAX_VALUEif this entity does not expire 
 - 
toString
 
 -