@NotThreadSafe public final class CrontabSync extends Sync.Abstract
Sync.AbstractCRONTAB_PARAM, ELAPSED_PARAM, OFFSET_PARAM, STAMP_PARAM, TIME_ZONE_PARAM| Constructor and Description |
|---|
CrontabSync()
Constructs an instance.
|
CrontabSync(String entry)
Constructs an instance.
|
CrontabSync(String entry,
ZoneId zoneId)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Sync |
copy()
Creates a copy of this.
|
boolean |
equals(Object object) |
Optional<DateTime> |
getNextStamp()
Gets the next time stamp.
|
Optional<DateTime> |
getPreviousStamp()
Gets the previous time stamp.
|
int |
hashCode() |
boolean |
isInSync()
Asks if the current time stamp is in sync.
|
void |
readExternal(ObjectInput input) |
boolean |
setUp(Params params)
Sets up this sync.
|
boolean |
setUp(String entry)
Sets up this.
|
void |
tearDown()
Tears down what has been set up.
|
String |
toString() |
void |
writeExternal(ObjectOutput output) |
checkNotFrozen, freeze, getCurrentStamp, getDefaultLimits, getFirstStamp, getLastStamp, getLimits, getNextStamp, getNextStamp, getNextStamp, getPreviousStamp, getPreviousStamp, getPreviousStamp, getThisLogger, getZoneId, isBounded, isInSync, iterator, iterator, nextStamp, previousStamp, reverseIterator, reverseIterator, seed, setCurrentStamp, setLimits, setZoneIdpublic CrontabSync()
Needed for dynamic instantiation.
public CrontabSync(@Nonnull
String entry)
entry - A 'crontab' entry.public CrontabSync(@Nonnull
String entry,
@Nonnull
ZoneId zoneId)
entry - An entry in crontab format.zoneId - The zone id.public Sync copy()
public boolean equals(Object object)
equals in class Objectpublic Optional<DateTime> getNextStamp()
public Optional<DateTime> getPreviousStamp()
public int hashCode()
hashCode in class Objectpublic boolean isInSync()
public void readExternal(ObjectInput input)
throws IOException
readExternal in interface ExternalizablereadExternal in class Sync.AbstractIOExceptionpublic boolean setUp(Params params)
setUp in class Sync.Abstractparams - The sync params.@CheckReturnValue public boolean setUp(String entry)
entry - The 'crontab' entry.public void tearDown()
tearDown in class Sync.Abstractpublic String toString()
toString in class Sync.Abstractpublic void writeExternal(ObjectOutput output)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class Sync.AbstractIOExceptionCopyright © 2003-2019 Serge Brisson. All Rights Reserved.