Package protocols.membership.full.timers
Class SampleTimer
java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoTimer
protocols.membership.full.timers.SampleTimer
- All Implemented Interfaces:
Cloneable
public class SampleTimer
extends pt.unl.fct.di.novasys.babel.generic.ProtoTimer
Fires periodically to make the membership protocol gossip a sample of its
neighbours (see
GossipBasedFullMembership.uponSampleTimer). Set up with
setupPeriodicTimer(...).
This timer carries no data, so clone() returns this rather
than allocating a fresh object on every fire — the Babel convention for
stateless timers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoTimer
getId
-
Field Details
-
TIMER_ID
public static final short TIMER_ID- See Also:
-
-
Constructor Details
-
SampleTimer
public SampleTimer()
-
-
Method Details
-
clone
public pt.unl.fct.di.novasys.babel.generic.ProtoTimer clone()- Specified by:
clonein classpt.unl.fct.di.novasys.babel.generic.ProtoTimer
-