Class OperationInfo
java.lang.Object
de.hybris.platform.core.threadregistry.OperationInfo
A map wrapper for all meta data for a given thread in a thread registry.
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates aOperationInfoBuilder.static OperationInfocurrent()Returns currentThread'sOperationInfo.static OperationInfoempty()Creates an emptyOperationInfo.booleanPLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release.PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release.PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release.PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release.PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release.inthashCode()booleanPLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release.booleanPLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release.toString()static RevertibleUpdateupdateThread(OperationInfo info) Updates currentThreadinfo with a new one (previous and new one are merged together).
-
Method Details
-
empty
Creates an emptyOperationInfo.- Returns:
- empty OperationInfo
-
builder
Creates aOperationInfoBuilder.- Returns:
- new OperationInfoBuilder
-
updateThread
Updates currentThreadinfo with a new one (previous and new one are merged together). Returns aRevertibleUpdateobject 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.- Parameters:
info- - operationInfo that will be merged with current operation info- Returns:
- RevertibleUpdate object with previous operation info
- Throws:
NullPointerException- if updateInfo is null
-
current
Returns currentThread'sOperationInfo. If there is no info attached, the result ofempty()will be returned. PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed. -
isJunitOperation
@Beta public boolean isJunitOperation()PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed. -
isInitOrUpdate
@Beta public boolean isInitOrUpdate()PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed. -
getCategory
PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed. -
getTenantId
PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed. -
getCronJobCode
PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed. -
getBusinessProcessCode
PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed. -
getAspectName
PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed. -
toString
-
equals
-
hashCode
public int hashCode()
-