public final class OperationInfo
extends java.lang.Object
Used to store information like category, status and additional attributes of a thread.
The information is stored in String key value pairs.
Contains information if a thread can have a suspended database.
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationInfo.Category |
static class |
OperationInfo.OperationInfoBuilder
Builder for
OperationInfo. |
| Modifier and Type | Method and Description |
|---|---|
static OperationInfo.OperationInfoBuilder |
builder()
Creates a
OperationInfoBuilder. |
static OperationInfo |
empty()
Creates an empty
OperationInfo. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
static RevertibleUpdate |
updateThread(OperationInfo info)
Updates current
Thread info with a new one (previous and new one are merged together). |
public static OperationInfo empty()
OperationInfo.public static OperationInfo.OperationInfoBuilder builder()
OperationInfoBuilder.public static RevertibleUpdate updateThread(OperationInfo info)
Thread info with a new one (previous and new one are merged together). Returns a
RevertibleUpdate object that allows to revert to previous operation info.
WARNING if a thread was not registered before this method won't do anything. The returned RevertibleObject
will also do nothing when his RevertibleUpdate.revert() method will be called.
info - - operationInfo that will be merged with current operation infojava.lang.NullPointerException - if updateInfo is nullpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.