public class SpanningOperationHolderImpl extends Object implements SpanningOperationHolder
SpanningOperation
inside ThreadLocal
so care should be taken when new threads
are spawned - value of thread local should be stored in newly creates threads to preserve spanning operation.Constructor and Description |
---|
SpanningOperationHolderImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears spanning operation
|
static void |
clearContext() |
SpanningOperation |
get() |
SpanningOperation |
pop()
Pops spanning operation and:
- if popped spanning operation has parent then this parent is set as current spanning operation
- if popped spanning operation doesn't have parent then current spanning operation is set to null
|
SpanningOperation |
push(SpanningOperation spanningOperation)
Stores passed spanning operation:
- if there is no spanning operation yet then passed spanning operation is stored.
|
void |
set(SpanningOperation spanningOperation)
Stores new spanning operation
|
public SpanningOperation get()
get
in interface SpanningOperationHolder
public void set(SpanningOperation spanningOperation)
SpanningOperationHolder
set
in interface SpanningOperationHolder
public void clear()
SpanningOperationHolder
clear
in interface SpanningOperationHolder
public SpanningOperation pop()
SpanningOperationHolder
pop
in interface SpanningOperationHolder
public SpanningOperation push(SpanningOperation spanningOperation)
SpanningOperationHolder
spanningOperation
is stored as current operation and existing spanning operation is set as its parentpush
in interface SpanningOperationHolder
public static void clearContext()
Copyright © 2002-2019 Atlassian. All Rights Reserved.