T - Type of callback resultpublic class CallbackResult<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_ALL
Caller and another callbacks will be blocked
|
static int |
BLOCK_CALLBACKS
Block callbacks mask, future callbacks will be blocked, but method won't
be
|
static int |
BLOCK_CALLER
Method will be blocked, but not callbacks
|
static int |
CONTINUE
Continue mask for callbacks, future invocation of method or other
callbacks is not blocked
|
| Modifier and Type | Method and Description |
|---|---|
T |
getResult()
Retruns result of this callback
|
boolean |
isBlockingCallbacks()
Returns true if is blocking callbacks
|
boolean |
isBlockingCaller()
Returns true if is blocking caller
|
static <T> CallbackResult<T> |
newCallbackBlocker()
Returns callback that blocks another callbacks, cached instance is used
for perfomance reasons
|
static <T> CallbackResult<T> |
newContinue()
Returns callback for continue action, for perfomance reasons returns
cached instance
|
static <T> CallbackResult<T> |
newFullBlocker(T result)
Returns callback that blocks another callbacks and method invocation.
|
public static final int CONTINUE
public static final int BLOCK_CALLBACKS
public static final int BLOCK_CALLER
public static final int BLOCK_ALL
public T getResult()
public boolean isBlockingCallbacks()
public boolean isBlockingCaller()
public static <T> CallbackResult<T> newContinue()
T - type of result object, ignored, always nullpublic static <T> CallbackResult<T> newCallbackBlocker()
T - type of result object, ignored, always nullpublic static <T> CallbackResult<T> newFullBlocker(T result)
Callback.afterCall(Object, Object[], Object)
will be invoked with the result from this call.T - type of resultresult - Result of callbackCopyright © 2014–2015. All rights reserved.