|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.contentmanager.publishers.ResilientScheduler
public class ResilientScheduler
A GCUBEScheduledHandler which tolerates failure for a maximum number of times.
| Constructor Summary | |
|---|---|
ResilientScheduler(long interval,
Mode mode)
Creates an instance with a given execution mode, time interval, and scheduled handler. |
|
| Method Summary | |
|---|---|
int |
getAttempts()
Returns the number of publication attempts. |
long |
getDelay()
Returns the interval between publication attempts. |
void |
setAttempts(int attempts)
Sets the number of publication attempts; |
void |
setDelay(long delay)
Sets the interval between publication attempts. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResilientScheduler(long interval,
Mode mode)
interval - the time interval in seconds.mode - the execution mode.handler - (optional) the scheduled handler.| Method Detail |
|---|
public int getAttempts()
public void setAttempts(int attempts)
attempts - the attempts.public long getDelay()
public void setDelay(long delay)
delay - the delay
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||