Class ExecutionComponentFeature.TimerWrapper

  • All Implemented Interfaces:
    ITimer
    Enclosing class:
    ExecutionComponentFeature

    protected class ExecutionComponentFeature.TimerWrapper
    extends java.lang.Object
    implements ITimer
    Wrap a timer and remove it from the agent when it is cancelled.
    • Constructor Detail

      • TimerWrapper

        public TimerWrapper​(ITimer timer)
        Wrap a timer.
    • Method Detail

      • cancel

        public void cancel()
        Description copied from interface: ITimer
        Cancel the timer.
        Specified by:
        cancel in interface ITimer
      • getNotificationTime

        public long getNotificationTime()
        Description copied from interface: ITimer
        Get the next notification time.
        Specified by:
        getNotificationTime in interface ITimer
        Returns:
        The notification time.
      • getTimedObject

        public ITimedObject getTimedObject()
        Description copied from interface: ITimer
        Get the timed object associated with this timer.
        Specified by:
        getTimedObject in interface ITimer
        Returns:
        The timed object.
      • setNotificationTime

        public void setNotificationTime​(long time)
        Description copied from interface: ITimer
        Change notification time.
        Specified by:
        setNotificationTime in interface ITimer
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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