|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentMark
Synthetic mark for tracing the progress of an agent's calls. Use
Agent.mark(Object)
to create the mark, this interface to configure
it, and call()
to add the call to the agent's queue.
Agent.await(Object)
implements a common idiom for marks. It is
functionally equivalent to the following:
Agent.mark(agent).call().await();
Synthetic calls behave like standard calls in most ways but are largely
invisible to most users of an agent. See CallSite.isSynthetic()
for
details.
The implementation for this interface is thread safe.
Agent.mark(Object)
,
Marker
Method Summary | |
---|---|
AgentCall<Void> |
call()
Adds a mark to the agent's queue. |
CallStateListener<Void> |
getCallStateListener()
Returns the default call state listener for new calls. |
CallStateListener<Void> |
getCallStateListener(CallState state)
Returns the listener for the given call state . |
MarkerType |
getMarkerType()
Returns the call's marker type or null for a standard call. |
void |
setCallStateListener(CallState state,
CallStateListener<Void> listener)
Sets a listener for the given call state . |
void |
setCallStateListener(CallStateListener<Void> listener)
Sets a default call state listener for new calls. |
void |
setMarkerType(MarkerType markerType)
Sets the call's marker type. |
Method Detail |
---|
AgentCall<Void> call()
MarkerType getMarkerType()
null
for a standard call.
The default is TRAILING
.
void setMarkerType(MarkerType markerType)
null
value represents a
standard call without a marker.
CallStateListener<Void> getCallStateListener()
null
if none has been assigned.
AgentCall.getCallStateListener()
void setCallStateListener(CallStateListener<Void> listener)
call()
will have the given listener configured as its default
listener. This method ensures the listener is configured prior to the
call's first state transition.
AgentCall.setCallStateListener(CallStateListener)
CallStateListener<Void> getCallStateListener(CallState state)
state
. Returns
null
if none has been assigned.
NullPointerException
- state
is null
AgentCall.getCallStateListener(CallState)
void setCallStateListener(CallState state, CallStateListener<Void> listener)
state
. The call returned
from call()
will have the given listener configured as its
listener for the given state. This method ensures the listener is
configured prior to the call's first state transition.
NullPointerException
- state
is null
AgentCall.setCallStateListener(CallState, CallStateListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |