Class TimeOut


  • public class TimeOut
    extends java.lang.Object
    Represents a timeout for an operation.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long timeOut  
      protected java.util.concurrent.TimeUnit unit  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeOut​(long timeOut, java.util.concurrent.TimeUnit unit)
      Instantiates a new timeout.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getTimeOut()
      Gets the timeout.
      java.util.concurrent.TimeUnit getTimeUnit()
      Gets the time unit.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • timeOut

        protected final long timeOut
      • unit

        protected final java.util.concurrent.TimeUnit unit
    • Constructor Detail

      • TimeOut

        public TimeOut​(long timeOut,
                       java.util.concurrent.TimeUnit unit)
        Instantiates a new timeout.
        Parameters:
        timeOut - the timeout
        unit - the unit
    • Method Detail

      • getTimeOut

        public long getTimeOut()
        Gets the timeout.
        Returns:
        the timeout
      • getTimeUnit

        public java.util.concurrent.TimeUnit getTimeUnit()
        Gets the time unit.
        Returns:
        the time unit
      • toString

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