WorkContext that allows a Work
instance to propagate quality-of-service (QoS) hints about the Work to the WorkManager.
jakarta.resource.spi.work.WorkContextProvider
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| pack-priv Map | |
| public static final String | |
| protected String | |
| public static final String | |
| private static final long | serialVersionUID
Determines if a deserialized instance of this class is compatible with this class. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDescription()
Implements jakarta. WorkContext and any other related debugging information.
|
| public Map | |
| public String | getName()
Implements jakarta. WorkContext.
|
| public void | setDescription(String
The description description)Set a brief description of the role played by the instance of HintsContext and any other related debugging information. |
| public void | setHint(String
name of the hint to set hintName, Serializable value to set value)Set a Hint and a related value. |
| public void |
| description | back to summary |
|---|---|
| protected String description | |
| hints | back to summary |
|---|---|
| pack-priv Map<String, Serializable> hints | |
| LONGRUNNING_HINT | back to summary |
|---|---|
| public static final String LONGRUNNING_HINT | |
| name | back to summary |
|---|---|
| protected String name | |
| NAME_HINT | back to summary |
|---|---|
| public static final String NAME_HINT | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Determines if a deserialized instance of this class is compatible with this class. | |
| HintsContext | back to summary |
|---|---|
| public HintsContext() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements jakarta. Doc from jakarta. Get the brief description of the role played by the
| |
| getHints | back to summary |
|---|---|
| public Map Get all hints
| |
| getName | back to summary |
|---|---|
| public String getName() Implements jakarta. Doc from jakarta. Get the associated name of the
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) Set a brief description of the role played by the instance of HintsContext and any other related debugging information. This could be used by the resource adapter and the WorkManager for logging and debugging purposes.
| |
| setHint | back to summary |
|---|---|
| public void setHint(String hintName, Serializable value) Set a Hint and a related value. The hintName must be non-Null. Standard HintNames are defined in the Jakarta Connectors specification. Use of "jakarta.resource." prefixed hintNames are reserved for use by the Jakarta Connectors specification.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the associated name of the HintsContext. This could be used by the resource adapter and the WorkManager for logging and debugging purposes.
| |