@NotThreadSafe public final class CrontabSync extends Sync.Abstract
Sync.Abstract
CRONTAB_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, setZoneId
public 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 Object
public Optional<DateTime> getNextStamp()
public Optional<DateTime> getPreviousStamp()
public int hashCode()
hashCode
in class Object
public boolean isInSync()
public void readExternal(ObjectInput input) throws IOException
readExternal
in interface Externalizable
readExternal
in class Sync.Abstract
IOException
public boolean setUp(Params params)
setUp
in class Sync.Abstract
params
- The sync params.@CheckReturnValue public boolean setUp(String entry)
entry
- The 'crontab' entry.public void tearDown()
tearDown
in class Sync.Abstract
public String toString()
toString
in class Sync.Abstract
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Sync.Abstract
IOException
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.