public class DeadlineDetails extends Object
Job
, will be serialized and deserialized using
the configured Serializer
on the JobRunrDeadlineManager
.Constructor and Description |
---|
DeadlineDetails(String deadlineName,
String scopeDescriptor,
String scopeDescriptorClass,
String payload,
String payloadClass,
String payloadRevision,
String metaData)
Creates a new
DeadlineDetails object, likely based on a
DeadlineMessage . |
Modifier and Type | Method and Description |
---|---|
GenericDeadlineMessage |
asDeadLineMessage(Serializer serializer)
Returns the
DeadlineDetails as an GenericDeadlineMessage , with the timestamp set using
the GenericEventMessage.clock to set to the current time. |
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. |
public DeadlineDetails(@Nonnull String deadlineName, @Nonnull String scopeDescriptor, @Nonnull String scopeDescriptorClass, @Nullable String payload, @Nullable String payloadClass, @Nullable String payloadRevision, @Nonnull String metaData)
DeadlineDetails
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.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)
DeadlineDetails
as an GenericDeadlineMessage
, with the timestamp set using
the GenericEventMessage.clock
to set to the current time.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.