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, 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

    Constructors
    Constructor
    Description
    DbSchedulerBinaryDeadlineDetails(String deadlineName, byte[] scopeDescriptor, String scopeDescriptorClass, byte @Nullable [] payload, @Nullable String payloadClass, @Nullable String payloadRevision, byte @Nullable [] metaData)
    Creates a new DbSchedulerBinaryDeadlineDetails object from the stored form of a deadline's parts.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Returns the name of the deadline.
    byte @Nullable []
    Returns the stored metadata of the deadline.
    byte @Nullable []
    Returns the stored payload of the deadline.
    @Nullable String
    Returns the type name of the payload of the deadline.
    @Nullable String
    Returns the revision of the payload type of the deadline.
    byte[]
    Returns the stored ScopeDescriptor of the deadline.
    Returns the class name of the ScopeDescriptor of the deadline.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 new DbSchedulerBinaryDeadlineDetails 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

    • getD

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

      public byte[] getS()
      Returns the stored ScopeDescriptor of the deadline.
      Returns:
      the stored ScopeDescriptor of the deadline
    • getSc

      public String getSc()
      Returns the class name of the ScopeDescriptor of the deadline.
      Returns:
      the class name of the ScopeDescriptor of the deadline
    • getP

      public byte @Nullable [] getP()
      Returns the stored payload of the deadline.
      Returns:
      the stored payload of the deadline, if any
    • getPc

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

      public @Nullable String 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

      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