public class CallStack extends Object
Constructor and Description |
---|
CallStack() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear this call stack.
|
ReplyHandler |
pop(Routable routable)
Pop a frame from this stack.
|
void |
push(ReplyHandler handler,
Object context)
Push a handler onto the callstack of this message with a given context.
|
int |
size()
Returns the number of elements of the callstack.
|
void |
swap(CallStack other)
Swap the content of this and the argument stack.
|
public void push(ReplyHandler handler, Object context)
handler
- The reply handler to store.context
- The context to be associated with the message for that handler.public ReplyHandler pop(Routable routable)
routable
- The routable that will have its context set.public void swap(CallStack other)
other
- The stack to swap content with.public void clear()
public int size()
Copyright © 2018. All rights reserved.