akka.util
Class Timeout$

java.lang.Object
  extended by akka.util.Timeout$
All Implemented Interfaces:
java.io.Serializable

public class Timeout$
extends java.lang.Object
implements scala.Serializable

A Timeout is a wrapper on top of Duration to be more specific about what the duration means.

See Also:
Serialized Form

Field Summary
static Timeout$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
Timeout$()
           
 
Method Summary
 Timeout apply(long timeout)
          Construct a Timeout from the given number of milliseconds.
 Timeout apply(long length, java.util.concurrent.TimeUnit unit)
          Construct a Timeout from the given time unit and factor.
 Timeout durationToTimeout(scala.concurrent.duration.FiniteDuration duration)
           
 Timeout intToTimeout(int timeout)
           
 Timeout longToTimeout(long timeout)
           
 Timeout zero()
          A timeout with zero duration, will cause most requests to always timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE$

public static final Timeout$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

Timeout$

public Timeout$()
Method Detail

zero

public Timeout zero()
A timeout with zero duration, will cause most requests to always timeout.

Returns:
(undocumented)

apply

public Timeout apply(long timeout)
Construct a Timeout from the given number of milliseconds.

Parameters:
timeout - (undocumented)
Returns:
(undocumented)

apply

public Timeout apply(long length,
                     java.util.concurrent.TimeUnit unit)
Construct a Timeout from the given time unit and factor.

Parameters:
length - (undocumented)
unit - (undocumented)
Returns:
(undocumented)

durationToTimeout

public Timeout durationToTimeout(scala.concurrent.duration.FiniteDuration duration)

intToTimeout

public Timeout intToTimeout(int timeout)

longToTimeout

public Timeout longToTimeout(long timeout)