public static interface IInterceptor.IInvokeContext
Modifier and Type | Method and Description |
---|---|
ICallInfo |
getCallInfo() |
void |
setReturnStatus(ReturnStatusType status) |
void |
setRunnable(IRunnable iRunnable) |
ICallInfo getCallInfo()
ICallInfo
encapsulating all the information
about the call being processed.
void setReturnStatus(ReturnStatusType status)
status
- A ReturnStatusType. If not specified, the default that is assumed is
ReturnStatusType.CONTINUE
which means okay.
void setRunnable(IRunnable iRunnable)
iRunnable
- An implementation of IRunnable
that is meant to execute the actual
logic of your interceptor. By encapsulating the logic of your interceptor
into an IRunnable, you allow your interceptor to be executed as a pending
action, i.e. be executed at a later time after having been persisted to
a RDBMS. As such, your implementation of IRunnable
must be serializable
following the rules defined by Java serialization (aka all your non-transient
non-volatile fields must be also be serializable).