Package akka.util

Class Timeout

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

    public class Timeout
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    Construct a Timeout from the given time unit and factor.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Timeout​(long length, java.util.concurrent.TimeUnit unit)  
      Timeout​(scala.concurrent.duration.FiniteDuration duration)  
    • Constructor Detail

      • Timeout

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

        public Timeout​(long length,
                       java.util.concurrent.TimeUnit unit)
    • Method Detail

      • zero

        public static Timeout zero()
      • 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
      • productElementName

        public java.lang.String productElementName​(int x$1)
      • 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