Class DbSchedulerBinaryDeadlineDetails

java.lang.Object
org.axonframework.deadline.dbscheduler.DbSchedulerBinaryDeadlineDetails
All Implemented Interfaces:
Serializable

public class DbSchedulerBinaryDeadlineDetails extends Object implements 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 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 new DbSchedulerBinaryDeadlineDetails object, likely based on a DeadlineMessage.
      Parameters:
      deadlineName - The String with the name of the deadline.
      scopeDescriptor - The String which tells what the scope is of the deadline.
      scopeDescriptorClass - The String which tells what the class of the scope descriptor is.
      payload - The String with the payload. This can be null.
      payloadClass - The String which tells what the class of the scope payload is.
      payloadRevision - The String which tells what the revision of the scope payload is.
      metaData - The String containing the metadata about the deadline. This can be null.
  • Method Details

    • getD

      public String getD()
      Returns the String with the name of the deadline.
      Returns:
      The String with the name of the deadline.
    • getS

      public byte[] getS()
      Returns the serialized byte[] which tells what the scope is of the deadline.
      Returns:
      The serialized byte[] which tells what the scope is of the deadline.
    • getSc

      public String getSc()
      Returns the String with the class of the scope descriptor.
      Returns:
      The String with the class of the scope descriptor.
    • getP

      public byte[] getP()
      Returns the serialized byte[] of the payload. This can be null.
      Returns:
      The serialized byte[] of the payload. This can be null.
    • getPc

      public String getPc()
      Returns the String with the class of the payload. This can be null.
      Returns:
      The String with the class of the payload. This can be null.
    • getR

      public String getR()
      Returns the String with the revision of the payload. This can be null.
      Returns:
      The String with the revision of the payload. This can be null.
    • getM

      public byte[] getM()
      Returns the byte[] containing the metadata about the deadline.
      Returns:
      The byte[] containing the metadata about the deadline.
    • asDeadLineMessage

      public GenericDeadlineMessage asDeadLineMessage(Serializer serializer)
      Returns the DbSchedulerBinaryDeadlineDetails as an GenericDeadlineMessage, with the timestamp set using the GenericEventMessage.clock.
      Returns:
      the GenericDeadlineMessage with all the properties of this pojo, and a timestamp.
    • getDeserializedScopeDescriptor

      public ScopeDescriptor getDeserializedScopeDescriptor(Serializer serializer)
      Returns the serialized ScopeDescriptor using the supplied Serializer. This will be an instance of the scopeDescriptorClass property.
      Returns:
      the ScopeDescriptor that is serialized using the supplied Serializer.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object