Class DbSchedulerHumanReadableDeadlineDetails
java.lang.Object
org.axonframework.deadline.dbscheduler.DbSchedulerHumanReadableDeadlineDetails
- All Implemented Interfaces:
Serializable
Pojo that contains the needed information for a
Task handling a
deadline, in human-readable form. Will be stored by db-scheduler's own serializer, Java serialization by default, as
the data of the task created by DbSchedulerDeadlineManager.humanReadableTask(java.util.function.Supplier).
The scope descriptor, payload and metadata it holds are converted with the configured
Converter.
The field names and the serialVersionUID are those of Axon Framework 4.13, so that both versions read
each other's tasks.
- Since:
- 4.8.0
- Author:
- Gerard Klijs
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDbSchedulerHumanReadableDeadlineDetails(String deadlineName, String scopeDescriptor, String scopeDescriptorClass, @Nullable String payload, @Nullable String payloadClass, @Nullable String payloadRevision, @Nullable String metaData) Creates a newDbSchedulerHumanReadableDeadlineDetailsobject from the stored form of a deadline's parts. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the deadline.@Nullable StringReturns the stored metadata of the deadline.@Nullable StringReturns the stored payload of the deadline.@Nullable StringReturns the type name of the payload of the deadline.@Nullable StringReturns the revision of the payload type of the deadline.Returns the storedScopeDescriptorof the deadline.Returns the class name of theScopeDescriptorof the deadline.inthashCode()toString()
-
Constructor Details
-
DbSchedulerHumanReadableDeadlineDetails
public DbSchedulerHumanReadableDeadlineDetails(String deadlineName, String scopeDescriptor, String scopeDescriptorClass, @Nullable String payload, @Nullable String payloadClass, @Nullable String payloadRevision, @Nullable String metaData) Creates a newDbSchedulerHumanReadableDeadlineDetailsobject from the stored form of a deadline's parts.- Parameters:
deadlineName- the name of the deadlinescopeDescriptor- the storedScopeDescriptordescribing the scope of the deadlinescopeDescriptorClass- the class name of theScopeDescriptorpayload- the stored payload of the deadline, if anypayloadClass- the type name of the payloadpayloadRevision- the revision of the payload type, if anymetaData- the stored metadata of the deadline
-
-
Method Details
-
getDeadlineName
Returns the name of the deadline.- Returns:
- the name of the deadline
-
getScopeDescriptor
Returns the storedScopeDescriptorof the deadline.- Returns:
- the stored
ScopeDescriptorof the deadline
-
getScopeDescriptorClass
Returns the class name of theScopeDescriptorof the deadline.- Returns:
- the class name of the
ScopeDescriptorof the deadline
-
getPayload
Returns the stored payload of the deadline.- Returns:
- the stored payload of the deadline, if any
-
getPayloadClass
Returns the type name of the payload of the deadline.- Returns:
- the type name of the payload of the deadline
-
getPayloadRevision
Returns the revision of the payload type of the deadline.- Returns:
- the revision of the payload type of the deadline, if any
-
getMetaData
Returns the stored metadata of the deadline.- Returns:
- the stored metadata of the deadline
-
toString
-
hashCode
public int hashCode() -
equals
-