public class DbSchedulerBinaryDeadlineDetails 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#binaryTask().| Constructor and Description |
|---|
DbSchedulerBinaryDeadlineDetails(String deadlineName,
byte[] scopeDescriptor,
String scopeDescriptorClass,
byte[] payload,
String payloadClass,
String payloadRevision,
byte[] metaData)
Creates a new
DbSchedulerBinaryDeadlineDetails object, likely based on a DeadlineMessage. |
| Modifier and Type | Method and Description |
|---|---|
GenericDeadlineMessage |
asDeadLineMessage(Serializer serializer)
Returns the
DbSchedulerBinaryDeadlineDetails as an GenericDeadlineMessage, with the
timestamp set using the GenericEventMessage.clock. |
boolean |
equals(Object obj) |
String |
getD()
Returns the
String with the name of the deadline. |
ScopeDescriptor |
getDeserializedScopeDescriptor(Serializer serializer)
Returns the serialized
ScopeDescriptor using the supplied Serializer. |
byte[] |
getM()
Returns the
byte[] containing the metadata about the deadline. |
byte[] |
getP()
Returns the serialized
byte[] of the payload. |
String |
getPc()
Returns the
String with the class of the payload. |
String |
getR()
Returns the
String with the revision of the payload. |
byte[] |
getS()
Returns the serialized
byte[] which tells what the scope is of the deadline. |
String |
getSc()
Returns the
String with the class of the scope descriptor. |
int |
hashCode() |
String |
toString() |
public DbSchedulerBinaryDeadlineDetails(@Nonnull String deadlineName, @Nonnull byte[] scopeDescriptor, @Nonnull String scopeDescriptorClass, @Nullable byte[] payload, @Nullable String payloadClass, @Nullable String payloadRevision, @Nullable byte[] metaData)
DbSchedulerBinaryDeadlineDetails 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 getD()
String with the name of the deadline.String with the name of the deadline.public byte[] getS()
byte[] which tells what the scope is of the deadline.byte[] which tells what the scope is of the deadline.public String getSc()
String with the class of the scope descriptor.String with the class of the scope descriptor.public byte[] getP()
byte[] of the payload. This can be null.byte[] of the payload. This can be null.public String getPc()
String with the class of the payload. This can be null.String with the class of the payload. This can be null.public String getR()
String with the revision of the payload. This can be null.String with the revision of the payload. This can be null.public byte[] getM()
byte[] containing the metadata about the deadline.byte[] containing the metadata about the deadline.public GenericDeadlineMessage asDeadLineMessage(Serializer serializer)
DbSchedulerBinaryDeadlineDetails 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–2025. All rights reserved.