akka.util
Class Timeout

java.lang.Object
  extended by akka.util.Timeout
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product

public class Timeout
extends java.lang.Object
implements scala.Product, scala.Serializable

See Also:
Serialized Form

Constructor Summary
Timeout(scala.concurrent.duration.FiniteDuration duration)
           
Timeout(long timeout)
          Construct a Timeout from the given number of milliseconds.
Timeout(long length, java.util.concurrent.TimeUnit unit)
          Construct a Timeout from the given time unit and factor.
 
Method Summary
static Timeout apply(long timeout)
          Construct a Timeout from the given number of milliseconds.
static Timeout apply(long length, java.util.concurrent.TimeUnit unit)
          Construct a Timeout from the given time unit and factor.
 scala.concurrent.duration.FiniteDuration duration()
           
static Timeout durationToTimeout(scala.concurrent.duration.FiniteDuration duration)
           
static Timeout intToTimeout(int timeout)
           
static Timeout longToTimeout(long timeout)
           
static 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
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

Timeout

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

Timeout

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


Timeout

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

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 timeout)
Construct a Timeout from the given number of milliseconds.


apply

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


durationToTimeout

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

intToTimeout

public static Timeout intToTimeout(int timeout)

longToTimeout

public static Timeout longToTimeout(long timeout)

duration

public scala.concurrent.duration.FiniteDuration duration()