Uses of Class
com.peterphi.std.threading.Timeout
Packages that use Timeout
Package
Description
-
Uses of Timeout in com.peterphi.std.guice.common.cached.util
Constructors in com.peterphi.std.guice.common.cached.util with parameters of type TimeoutModifierConstructorDescriptionSingleItemCache
(Callable<T> supplier, Timeout validity) Create a new cache, caching the result ofsupplier
for a maximum ofvalidity
. -
Uses of Timeout in com.peterphi.std.guice.common.daemon
Fields in com.peterphi.std.guice.common.daemon declared as TimeoutMethods in com.peterphi.std.guice.common.daemon that return TimeoutModifier and TypeMethodDescriptionGuiceRecurringDaemon.getInitialSleepTime()
@NotNull Timeout
GuiceScheduledDaemon.getInitialSleepTime()
GuiceRecurringDaemon.getSleepTime()
@NotNull Timeout
GuiceScheduledDaemon.getSleepTime()
Methods in com.peterphi.std.guice.common.daemon with parameters of type TimeoutModifier and TypeMethodDescriptionvoid
GuiceRecurringDaemon.setSleepTime
(Timeout sleepTime) protected void
Sleep for the specified amount of time (unless the daemon is stopping, in which case do not sleep at all).Constructors in com.peterphi.std.guice.common.daemon with parameters of type TimeoutModifierConstructorDescriptionprotected
GuiceRecurringDaemon
(boolean daemonThread, Timeout sleepTime) Creates a new Daemon; the Daemon will start once the guice object is fully constructedprotected
GuiceRecurringDaemon
(Timeout sleepTime) Creates a new Daemon; the Daemon will start once the guice object is fully constructed -
Uses of Timeout in com.peterphi.std.guice.common.retry.retry.backoff
Constructors in com.peterphi.std.guice.common.retry.retry.backoff with parameters of type TimeoutModifierConstructorDescriptionExponentialBackoff
(Timeout initial, double exponent) ExponentialBackoff
(Timeout initial, double exponent, Timeout maximum) -
Uses of Timeout in com.peterphi.std.guice.common.serviceprops.jaxbref
Methods in com.peterphi.std.guice.common.serviceprops.jaxbref with parameters of type TimeoutModifier and TypeMethodDescriptionJAXBResourceProvider.withCacheValidity
(Timeout cacheValidity) Change the period that serialised results will be cached for -
Uses of Timeout in com.peterphi.std.guice.common.stringparsing
Methods in com.peterphi.std.guice.common.stringparsing that return Timeout -
Uses of Timeout in com.peterphi.std.guice.web.rest.auth.oauth2
Fields in com.peterphi.std.guice.web.rest.auth.oauth2 declared as TimeoutModifier and TypeFieldDescriptionOAuth2SessionRef.delegatedTokenRefreshPeriod
OAuth2SessionRef.delegatedTokenValidityPeriod
-
Uses of Timeout in com.peterphi.std.threading
Fields in com.peterphi.std.threading declared as TimeoutModifier and TypeFieldDescriptionstatic final Timeout
Timeout.FIVE_MINUTES
Five minutesstatic final Timeout
Timeout.MAX_VALUE
The maximum possible timeoutstatic final Timeout
Timeout.ONE_MINUTE
One minutestatic final Timeout
Timeout.ONE_QUARTER_SECOND
0.25 seconds (250 milliseconds)static final Timeout
Timeout.ONE_SECOND
One secondstatic final Timeout
Timeout.TEN_SECONDS
Ten secondsstatic final Timeout
Timeout.THIRTY_MINUTES
30 minutesstatic final Timeout
Timeout.THIRTY_SECONDS
Thirty secondsstatic final Timeout
Timeout.ZERO
A zero-length timeoutMethods in com.peterphi.std.threading that return TimeoutModifier and TypeMethodDescriptionDeadline.getTimeoutLeft()
Determines the amount of time leftuntil the deadline and returns it as a timeoutstatic Timeout
Filter through a number of timeouts to find the one with the longest periodstatic Timeout
Filter through a number of timeouts to find the one with the shortest periodTimeout.multiply
(double by) Create a new Timeout which is equal to this timeout multiplied by some value
The resulting Timeout will be in milliseconds to maximise precision.Timeout.multiply
(long by) Create a new Timeout which is equal to this timeout multiplied by some valuestatic Timeout
Adds together all the supplied timeoutsMethods in com.peterphi.std.threading with parameters of type TimeoutModifier and TypeMethodDescriptionint
static Timeout
Filter through a number of timeouts to find the one with the longest periodstatic Timeout
Filter through a number of timeouts to find the one with the shortest periodstatic Timeout
Adds together all the supplied timeoutsConstructors in com.peterphi.std.threading with parameters of type Timeout -
Uses of Timeout in com.peterphi.std.util
Methods in com.peterphi.std.util that return Timeout -
Uses of Timeout in com.peterphi.usermanager.guice.authentication
Fields in com.peterphi.usermanager.guice.authentication declared as TimeoutModifier and TypeFieldDescriptionstatic Timeout
UserLoginProvider.LOGIN_TIMEOUT
The maximum amount of time a login transaction is permitted to run before being abandoned