Package org.oddjob.state
Class StateInstant
java.lang.Object
org.oddjob.state.StateInstant
- All Implemented Interfaces:
Serializable
Ensure a unique instant for each state. Some jobs will not trigger if the time
of the state event hasn't changed. This ensures that each run of a Job will have
a unique event time so subsequent tasks run as expected.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StateInstantforOneVersionOnly(Instant instant) Deprecated, for removal: This API element is subject to removal in a future version.inthashCode()static StateInstantnow()static StateInstantnow(StateInstantClock clock) static StateInstanttoString()
-
Method Details
-
now
-
now
-
parse
-
forOneVersionOnly
@Deprecated(since="1.7", forRemoval=true) public static StateInstant forOneVersionOnly(Instant instant) Deprecated, for removal: This API element is subject to removal in a future version.Required to support the deprecated constructors inStateEvent.- Parameters:
instant- The instant- Returns:
- The wrapped instant.
- Since:
- 1.7
-
getInstant
-
toString
-
equals
-
hashCode
public int hashCode()
-