public class TemplatePayloadInfo
extends java.lang.Object
TemplatePayload exposes to the framework so
centralized decisions can be made based on payload characteristics.
Binary-compatibility contract: new fields are added as
getter/setter pairs. A null value means "not specified" —
the payload makes no claim and the framework applies its own policy.
Older implementations that return a default-constructed instance
continue to work unchanged as new fields are introduced.
Current fields:
supportsTransactions — whether the payload's target
system supports transactional execution. null (default)
means the payload makes no claim.| Constructor and Description |
|---|
TemplatePayloadInfo()
Creates an info instance with all fields set to
null
(no claims made). |
TemplatePayloadInfo(boolean supportsTransactions)
Creates an info instance with all fields
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.Boolean> |
getSupportsTransactions()
Returns whether the payload's target system supports transactional
execution.
|
void |
setSupportsTransactions(java.lang.Boolean supportsTransactions)
Sets whether the payload's target system supports transactional
execution.
|
public TemplatePayloadInfo()
null
(no claims made).public TemplatePayloadInfo(boolean supportsTransactions)
public java.util.Optional<java.lang.Boolean> getSupportsTransactions()
Optional containing true or false
if the payload explicitly declares support; empty if the
payload makes no claimpublic void setSupportsTransactions(java.lang.Boolean supportsTransactions)
supportsTransactions - true if transactions are supported,
false if not, or null to
make no claim