public class DbSchedulerHumanReadableDeadlineDetails extends Object implements Serializable
Task
handling a deadline. Will be
serialized and deserialized using the configured Serializer
on the
Scheduler
. This object is used with the
DbSchedulerDeadlineManager#humanReadableTask()
.Constructor and Description |
---|
DbSchedulerHumanReadableDeadlineDetails(String deadlineName,
String scopeDescriptor,
String scopeDescriptorClass,
String payload,
String payloadClass,
String payloadRevision,
String metaData)
Creates a new
DbSchedulerHumanReadableDeadlineDetails object, likely based on a DeadlineMessage . |
Modifier and Type | Method and Description |
---|---|
GenericDeadlineMessage |
asDeadLineMessage(Serializer serializer)
Returns the
DbSchedulerHumanReadableDeadlineDetails as an GenericDeadlineMessage , with the
timestamp set using the GenericEventMessage.clock . |
boolean |
equals(Object obj) |
String |
getDeadlineName()
Returns the
String with the name of the deadline. |
ScopeDescriptor |
getDeserializedScopeDescriptor(Serializer serializer)
Returns the serialized
ScopeDescriptor using the supplied Serializer . |
String |
getMetaData()
Returns the
String containing the metadata about the deadline. |
String |
getPayload()
Returns the serialized
String of the payload. |
String |
getPayloadClass()
Returns the
String with the class of the payload. |
String |
getPayloadRevision()
Returns the
String with the revision of the payload. |
String |
getScopeDescriptor()
Returns the serialized
String which tells what the scope is of the deadline. |
String |
getScopeDescriptorClass()
Returns the
String with the class of the scope descriptor. |
int |
hashCode() |
String |
toString() |
public DbSchedulerHumanReadableDeadlineDetails(@Nonnull String deadlineName, @Nonnull String scopeDescriptor, @Nonnull String scopeDescriptorClass, @Nullable String payload, @Nullable String payloadClass, @Nullable String payloadRevision, @Nullable String metaData)
DbSchedulerHumanReadableDeadlineDetails
object, likely based on a DeadlineMessage
.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.public String getDeadlineName()
String
with the name of the deadline.String
with the name of the deadline.public String getScopeDescriptor()
String
which tells what the scope is of the deadline.String
which tells what the scope is of the deadline.public String getScopeDescriptorClass()
String
with the class of the scope descriptor.String
with the class of the scope descriptor.public String getPayload()
String
of the payload. This can be null.String
of the payload. This can be null.public String getPayloadClass()
String
with the class of the payload. This can be null.String
with the class of the payload. This can be null.public String getPayloadRevision()
String
with the revision of the payload. This can be null.String
with the revision of the payload. This can be null.public String getMetaData()
String
containing the metadata about the deadline.String
containing the metadata about the deadline.public GenericDeadlineMessage asDeadLineMessage(Serializer serializer)
DbSchedulerHumanReadableDeadlineDetails
as an GenericDeadlineMessage
, with the
timestamp set using the GenericEventMessage.clock
.GenericDeadlineMessage
with all the properties of this pojo, and a timestamp.public ScopeDescriptor getDeserializedScopeDescriptor(Serializer serializer)
ScopeDescriptor
using the supplied Serializer
. This will be an instance of
the scopeDescriptorClass
property.ScopeDescriptor
that is serialized using the supplied Serializer
.Copyright © 2010–2024. All rights reserved.