Module java.base

Class TimeOut


  • public class TimeOut
    extends Object
    Represents WispTask related time out
    • Constructor Detail

      • TimeOut

        public TimeOut​(WispTask task,
                       long deadlineNano,
                       com.alibaba.wisp.engine.TimeOut.Action action)
        Parameters:
        task - related WispTask
        deadlineNano - wake up related WispTask at deadline if not canceled
    • Method Detail

      • expired

        public boolean expired()
        Returns:
        true if and only if associated timer is expired.