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, will be
serialized and deserialized using the configured Serializer on the
Scheduler. This object is used with the
invalid reference
DbSchedulerDeadlineManager#binaryTask()
- Since:
- 4.8.0
- Author:
- Gerard Klijs
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDbSchedulerBinaryDeadlineDetails(String deadlineName, byte[] scopeDescriptor, String scopeDescriptorClass, byte[] payload, String payloadClass, String payloadRevision, byte[] metaData) Creates a newDbSchedulerBinaryDeadlineDetailsobject, likely based on aDeadlineMessage. -
Method Summary
Modifier and TypeMethodDescriptionasDeadLineMessage(Serializer serializer) Returns theDbSchedulerBinaryDeadlineDetailsas anGenericDeadlineMessage, with the timestamp set using theGenericEventMessage.clock.booleangetD()Returns theStringwith the name of the deadline.getDeserializedScopeDescriptor(Serializer serializer) Returns the serializedScopeDescriptorusing the suppliedSerializer.byte[]getM()Returns thebyte[]containing the metadata about the deadline.byte[]getP()Returns the serializedbyte[]of the payload.getPc()Returns theStringwith the class of the payload.getR()Returns theStringwith the revision of the payload.byte[]getS()Returns the serializedbyte[]which tells what the scope is of the deadline.getSc()Returns theStringwith the class of the scope descriptor.inthashCode()toString()
-
Constructor Details
-
DbSchedulerBinaryDeadlineDetails
public DbSchedulerBinaryDeadlineDetails(@Nonnull String deadlineName, @Nonnull byte[] scopeDescriptor, @Nonnull String scopeDescriptorClass, @Nullable byte[] payload, @Nullable String payloadClass, @Nullable String payloadRevision, @Nullable byte[] metaData) Creates a newDbSchedulerBinaryDeadlineDetailsobject, likely based on aDeadlineMessage.- Parameters:
deadlineName- TheStringwith the name of the deadline.scopeDescriptor- TheStringwhich tells what the scope is of the deadline.scopeDescriptorClass- TheStringwhich tells what the class of the scope descriptor is.payload- TheStringwith the payload. This can be null.payloadClass- TheStringwhich tells what the class of the scope payload is.payloadRevision- TheStringwhich tells what the revision of the scope payload is.metaData- TheStringcontaining the metadata about the deadline. This can be null.
-
-
Method Details
-
getD
Returns theStringwith the name of the deadline.- Returns:
- The
Stringwith the name of the deadline.
-
getS
public byte[] getS()Returns the serializedbyte[]which tells what the scope is of the deadline.- Returns:
- The serialized
byte[]which tells what the scope is of the deadline.
-
getSc
Returns theStringwith the class of the scope descriptor.- Returns:
- The
Stringwith the class of the scope descriptor.
-
getP
public byte[] getP()Returns the serializedbyte[]of the payload. This can be null.- Returns:
- The serialized
byte[]of the payload. This can be null.
-
getPc
Returns theStringwith the class of the payload. This can be null.- Returns:
- The
Stringwith the class of the payload. This can be null.
-
getR
Returns theStringwith the revision of the payload. This can be null.- Returns:
- The
Stringwith the revision of the payload. This can be null.
-
getM
public byte[] getM()Returns thebyte[]containing the metadata about the deadline.- Returns:
- The
byte[]containing the metadata about the deadline.
-
asDeadLineMessage
Returns theDbSchedulerBinaryDeadlineDetailsas anGenericDeadlineMessage, with the timestamp set using theGenericEventMessage.clock.- Returns:
- the
GenericDeadlineMessagewith all the properties of this pojo, and a timestamp.
-
getDeserializedScopeDescriptor
Returns the serializedScopeDescriptorusing the suppliedSerializer. This will be an instance of thescopeDescriptorClassproperty.- Returns:
- the
ScopeDescriptorthat is serialized using the suppliedSerializer.
-
toString
-
hashCode
public int hashCode() -
equals
-