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