Class AzureOperationContext
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.operation.AzureOperationContext
-
public class AzureOperationContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static ThreadLocal<AzureOperationContext>contextprotected IAzureOperation<?>operationprotected AzureOperationContextparentprotected longthreadId
-
Constructor Summary
Constructors Modifier Constructor Description privateAzureOperationContext(AzureOperationContext parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AzureOperationContextcurrent()IAzureOperation<?>currentOperation()AzureOperationContextderive()private voiddispose()StringgetId()IAzureOperation<?>popOperation()voidpushOperation(IAzureOperation<?> operation)voidrun(Runnable runnable)private voidsetParent(AzureOperationContext parent)private voidsetup()StringtoString()
-
-
-
Field Detail
-
context
private static final ThreadLocal<AzureOperationContext> context
-
threadId
protected long threadId
-
operation
@Nullable protected IAzureOperation<?> operation
-
parent
@Nullable protected AzureOperationContext parent
-
-
Constructor Detail
-
AzureOperationContext
private AzureOperationContext(@Nullable AzureOperationContext parent)
-
-
Method Detail
-
setParent
private void setParent(@Nullable AzureOperationContext parent)
-
current
@Nonnull public static AzureOperationContext current()
-
currentOperation
@Nullable public IAzureOperation<?> currentOperation()
-
pushOperation
public void pushOperation(IAzureOperation<?> operation)
-
popOperation
@Nullable public IAzureOperation<?> popOperation()
-
run
public void run(Runnable runnable)
-
derive
@Nonnull public AzureOperationContext derive()
-
setup
private void setup()
-
dispose
private void dispose()
-
getId
public String getId()
-
-