Class SynchTimer

  • All Implemented Interfaces:
    org.bedework.util.logging.Logged

    public class SynchTimer
    extends Object
    implements org.bedework.util.logging.Logged
    Subscriptions which are waiting for a period before resynching. These are generally the polled kind but other subscriptions may be made to wait before retrying failed operations.
    Author:
    Mike Douglass douglm rpi.edu
    • Constructor Detail

      • SynchTimer

        public SynchTimer​(SynchEngine syncher)
        Start the SynchTimer
        Parameters:
        syncher - the synch engine
    • Method Detail

      • stop

        public void stop()
        Stop our timer thread.
      • schedule

        public void schedule​(Subscription sub,
                             Date when)
        Schedule a subscription for the given time
        Parameters:
        sub - the subscription
        when - to process it
      • schedule

        public void schedule​(Subscription sub,
                             long delay)
        Schedule a subscription after the given delay
        Parameters:
        sub - the subscription
        delay - - delay in milliseconds before subscription is processed.
      • getWaitingCt

        public long getWaitingCt()
        Returns:
        number waiting
      • getMaxWaitingCt

        public long getMaxWaitingCt()
        Returns:
        number waiting
      • getStats

        public List<Stat> getStats()
        Get the current stats
        Returns:
        List of Stat
      • getLogger

        public org.bedework.util.logging.BwLogger getLogger()
        Specified by:
        getLogger in interface org.bedework.util.logging.Logged