Package org.eclipse.jetty.io
Interface CyclicTimeouts.Expirable
-
- All Known Implementing Classes:
HttpChannel,HttpChannelOverFCGI,HttpChannelOverHTTP,HttpChannelOverHTTP2,HttpExchange
- Enclosing class:
- CyclicTimeouts<T extends CyclicTimeouts.Expirable>
public static interface CyclicTimeouts.ExpirableAn entity that may expire.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetExpireNanoTime()Returns the expiration time in nanoseconds.
-
-
-
Method Detail
-
getExpireNanoTime
long getExpireNanoTime()
Returns the expiration time in nanoseconds.
The value to return must be calculated taking into account
System.nanoTime(), for example:expireNanoTime = System.nanoTime() + 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
-
-