Package org.apache.pekko.util
Class Timeout
- java.lang.Object
-
- org.apache.pekko.util.Timeout
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public class Timeout extends java.lang.Object implements scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Timeout
apply(long length, java.util.concurrent.TimeUnit unit)
Construct a Timeout from the given time unit and factor.static Timeout
apply(scala.concurrent.duration.FiniteDuration duration)
boolean
canEqual(java.lang.Object x$1)
Timeout
copy(scala.concurrent.duration.FiniteDuration duration)
scala.concurrent.duration.FiniteDuration
copy$default$1()
static Timeout
create(java.time.Duration duration)
Create a Timeout from java.time.Duration.scala.concurrent.duration.FiniteDuration
duration()
static Timeout
durationToTimeout(scala.concurrent.duration.FiniteDuration duration)
boolean
equals(java.lang.Object x$1)
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
static scala.Option<scala.concurrent.duration.FiniteDuration>
unapply(Timeout x$0)
static Timeout
zero()
A timeout with zero duration, will cause most requests to always timeout.
-
-
-
Method Detail
-
zero
public static Timeout zero()
A timeout with zero duration, will cause most requests to always timeout.
-
apply
public static Timeout apply(long length, java.util.concurrent.TimeUnit unit)
Construct a Timeout from the given time unit and factor.
-
create
public static Timeout create(java.time.Duration duration)
Create a Timeout from java.time.Duration.
-
durationToTimeout
public static Timeout durationToTimeout(scala.concurrent.duration.FiniteDuration duration)
-
apply
public static Timeout apply(scala.concurrent.duration.FiniteDuration duration)
-
unapply
public static scala.Option<scala.concurrent.duration.FiniteDuration> unapply(Timeout x$0)
-
duration
public scala.concurrent.duration.FiniteDuration duration()
-
copy
public Timeout copy(scala.concurrent.duration.FiniteDuration duration)
-
copy$default$1
public scala.concurrent.duration.FiniteDuration copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-