|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.invocation.InvocationStack
public final class InvocationStack
Keeps track of recursive Invocation
s. This stack assumes an invocation
occurs in the same thread since it is called first, so we manages stacks
for each invocation in ThreadLocal
-like manner. You can just use
getInstance()
to get current invocation stack.
Method Summary | |
---|---|
static InvocationStack |
getInstance()
Returns the invocation stack of current thread. |
boolean |
isEmpty()
Returns true if the stack is empty false otherwise. |
OperationContext |
peek()
Returns the latest invocation. |
OperationContext |
pop()
Pops the latest invocation from this stack. |
void |
push(OperationContext opContext)
Pushes the specified invocation to this stack. |
OperationContext[] |
toArray()
Returns an array of Invocation s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static InvocationStack getInstance()
public OperationContext[] toArray()
Invocation
s. 0th element is the
latest invocation.
public OperationContext peek()
public boolean isEmpty()
public void push(OperationContext opContext)
public OperationContext pop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |