Package akka.util
Class Timeout$
- java.lang.Object
-
- akka.util.Timeout$
-
- All Implemented Interfaces:
java.io.Serializable
public class Timeout$ extends java.lang.Object implements java.io.Serializable
A Timeout is a wrapper on top of Duration to be more specific about what the duration means.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Timeout$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Timeout
apply(long length, java.util.concurrent.TimeUnit unit)
Construct a Timeout from the given time unit and factor.Timeout
apply(scala.concurrent.duration.FiniteDuration duration)
Timeout
create(java.time.Duration duration)
Create a Timeout from java.time.Duration.Timeout
durationToTimeout(scala.concurrent.duration.FiniteDuration duration)
scala.Option<scala.concurrent.duration.FiniteDuration>
unapply(Timeout x$0)
Timeout
zero()
A timeout with zero duration, will cause most requests to always timeout.
-
-
-
Field Detail
-
MODULE$
public static final Timeout$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
zero
public Timeout zero()
A timeout with zero duration, will cause most requests to always timeout.
-
apply
public Timeout apply(long length, java.util.concurrent.TimeUnit unit)
Construct a Timeout from the given time unit and factor.
-
create
public Timeout create(java.time.Duration duration)
Create a Timeout from java.time.Duration.
-
durationToTimeout
public Timeout durationToTimeout(scala.concurrent.duration.FiniteDuration duration)
-
apply
public Timeout apply(scala.concurrent.duration.FiniteDuration duration)
-
unapply
public scala.Option<scala.concurrent.duration.FiniteDuration> unapply(Timeout x$0)
-
-