Package org.eclipse.jetty.io
Interface CyclicTimeouts.Expirable
- All Known Implementing Classes:
HTTP2Stream,HttpChannel,HttpChannelOverFCGI,HttpChannelOverHTTP,HttpChannelOverHTTP2,HttpExchange,ServerQuicSession
- Enclosing class:
- CyclicTimeouts<T extends CyclicTimeouts.Expirable>
public static interface CyclicTimeouts.Expirable
An entity that may expire.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the expiration time in nanoseconds.
-
Method Details
-
getExpireNanoTime
long getExpireNanoTime()Returns 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.- Returns:
- the expiration time in nanoseconds, or
Long.MAX_VALUEif this entity does not expire
-