Class DbSchedulerHumanReadableDeadlineDetails

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

public class DbSchedulerHumanReadableDeadlineDetails extends Object implements 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 Details

    • DbSchedulerHumanReadableDeadlineDetails

      public DbSchedulerHumanReadableDeadlineDetails(String deadlineName, String scopeDescriptor, String scopeDescriptorClass, @Nullable String payload, @Nullable String payloadClass, @Nullable String payloadRevision, @Nullable String metaData)
      Creates a new DbSchedulerHumanReadableDeadlineDetails object from the stored form of a deadline's parts.
      Parameters:
      deadlineName - the name of the deadline
      scopeDescriptor - the stored ScopeDescriptor describing the scope of the deadline
      scopeDescriptorClass - the class name of the ScopeDescriptor
      payload - the stored payload of the deadline, if any
      payloadClass - the type name of the payload
      payloadRevision - the revision of the payload type, if any
      metaData - the stored metadata of the deadline
  • Method Details

    • getDeadlineName

      public String getDeadlineName()
      Returns the name of the deadline.
      Returns:
      the name of the deadline
    • getScopeDescriptor

      public String getScopeDescriptor()
      Returns the stored ScopeDescriptor of the deadline.
      Returns:
      the stored ScopeDescriptor of the deadline
    • getScopeDescriptorClass

      public String getScopeDescriptorClass()
      Returns the class name of the ScopeDescriptor of the deadline.
      Returns:
      the class name of the ScopeDescriptor of the deadline
    • getPayload

      public @Nullable String getPayload()
      Returns the stored payload of the deadline.
      Returns:
      the stored payload of the deadline, if any
    • getPayloadClass

      public @Nullable String getPayloadClass()
      Returns the type name of the payload of the deadline.
      Returns:
      the type name of the payload of the deadline
    • getPayloadRevision

      public @Nullable String getPayloadRevision()
      Returns the revision of the payload type of the deadline.
      Returns:
      the revision of the payload type of the deadline, if any
    • getMetaData

      public @Nullable String getMetaData()
      Returns the stored metadata of the deadline.
      Returns:
      the stored metadata of the deadline
    • 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