Package akka.util

Class Timeout

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public class Timeout
    extends java.lang.Object
    implements scala.Product, scala.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Timeout​(long length, java.util.concurrent.TimeUnit unit)
      Construct a Timeout from the given time unit and factor.
      Timeout​(scala.concurrent.duration.FiniteDuration duration)  
    • 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)  
      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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Timeout

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

        public Timeout​(long length,
                       java.util.concurrent.TimeUnit unit)
        Construct a Timeout from the given time unit and factor.
        Parameters:
        length - (undocumented)
        unit - (undocumented)
    • Method Detail

      • zero

        public static Timeout zero()
        A timeout with zero duration, will cause most requests to always timeout.
        Returns:
        (undocumented)
      • apply

        public static 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)
      • create

        public static Timeout create​(java.time.Duration duration)
        Create a Timeout from java.time.Duration.
        Parameters:
        duration - (undocumented)
        Returns:
        (undocumented)
      • 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 interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object