Package org.jgroups.protocols
Class FILE_PING.InfoWriter
java.lang.Object
org.jgroups.protocols.FILE_PING.InfoWriter
- All Implemented Interfaces:
Runnable,TimeScheduler.Task
- Enclosing class:
FILE_PING
Class which calls writeAll() a few times. Started after a view change in which an old coord left
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected intprotected final long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
max_writes
protected final int max_writes -
num_writes
protected int num_writes -
sleep_interval
protected final long sleep_interval
-
-
Constructor Details
-
InfoWriter
public InfoWriter(int max_writes, long sleep_interval)
-
-
Method Details
-
nextInterval
public long nextInterval()- Specified by:
nextIntervalin interfaceTimeScheduler.Task- Returns:
- the next scheduled interval in ms. If <= 0 the task will not be re-scheduled
-
run
public void run()
-