Class DbSchedulerBinaryDeadlineDetails
java.lang.Object
org.axonframework.deadline.dbscheduler.DbSchedulerBinaryDeadlineDetails
- All Implemented Interfaces:
Serializable
Pojo that contains the needed information for a
Task handling a
deadline, in binary form. Will be stored by db-scheduler's own serializer, Java serialization by default, as the data
of the task created by DbSchedulerDeadlineManager.binaryTask(java.util.function.Supplier). The scope
descriptor, payload and metadata it holds are converted with the configured
Converter.
The short 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
ConstructorsConstructorDescriptionDbSchedulerBinaryDeadlineDetails(String deadlineName, byte[] scopeDescriptor, String scopeDescriptorClass, byte @Nullable [] payload, @Nullable String payloadClass, @Nullable String payloadRevision, byte @Nullable [] metaData) Creates a newDbSchedulerBinaryDeadlineDetailsobject from the stored form of a deadline's parts. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetD()Returns the name of the deadline.byte @Nullable []getM()Returns the stored metadata of the deadline.byte @Nullable []getP()Returns the stored payload of the deadline.@Nullable StringgetPc()Returns the type name of the payload of the deadline.@Nullable StringgetR()Returns the revision of the payload type of the deadline.byte[]getS()Returns the storedScopeDescriptorof the deadline.getSc()Returns the class name of theScopeDescriptorof the deadline.inthashCode()toString()
-
Constructor Details
-
DbSchedulerBinaryDeadlineDetails
public DbSchedulerBinaryDeadlineDetails(String deadlineName, byte[] scopeDescriptor, String scopeDescriptorClass, byte @Nullable [] payload, @Nullable String payloadClass, @Nullable String payloadRevision, byte @Nullable [] metaData) Creates a newDbSchedulerBinaryDeadlineDetailsobject 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
-
getD
Returns the name of the deadline.- Returns:
- the name of the deadline
-
getS
public byte[] getS()Returns the storedScopeDescriptorof the deadline.- Returns:
- the stored
ScopeDescriptorof the deadline
-
getSc
Returns the class name of theScopeDescriptorof the deadline.- Returns:
- the class name of the
ScopeDescriptorof the deadline
-
getP
public byte @Nullable [] getP()Returns the stored payload of the deadline.- Returns:
- the stored payload of the deadline, if any
-
getPc
Returns the type name of the payload of the deadline.- Returns:
- the type name of the payload of the deadline
-
getR
Returns the revision of the payload type of the deadline.- Returns:
- the revision of the payload type of the deadline, if any
-
getM
public byte @Nullable [] getM()Returns the stored metadata of the deadline.- Returns:
- the stored metadata of the deadline
-
toString
-
hashCode
public int hashCode() -
equals
-