Class TimeoutPriorityQueueImpl.TimeoutExtImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int DONE
      Done
      (package private) int index
      Index in the queue
      (package private) TimeoutTarget target
      The timeout target
      (package private) long time
      Time of the timeout
      (package private) static int TIMEOUT
      In timeout
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TimeoutExtImpl()  
    • Constructor Detail

      • TimeoutExtImpl

        private TimeoutExtImpl()
    • Method Detail

      • getTime

        public long getTime()
        Specified by:
        getTime in interface TimeoutExt
        Returns:
        the time of this timeout
      • done

        public void done()
        Description copied from interface: TimeoutExt
        Mark the work as done
        Specified by:
        done in interface TimeoutExt
      • cancel

        public boolean cancel()
        Description copied from interface: Timeout
        Cancel this timeout. It is guaranteed that on return from this method this timer is no longer active. This means that either it has been cancelled and the timeout will not happen, or (in case of late cancel) the timeout has happened and the timeout callback function has returned. On return from this method this instance should no longer be used. The reason for this is that an implementation may reuse cancelled timeouts, and at return the instance may already be in use for another timeout.
        Specified by:
        cancel in interface Timeout
        Returns:
        true when cancelled