public abstract class CallableDecorator extends Object
Callable.call()to filter the execution.
|Constructor and Description|
|Modifier and Type||Method and Description|
Used to decorate everything that executes in the channel as a result of a request from the other side, such as RPC executions on exported objects, user-provided
Used to specifically decorate user-provided
Callableexecution, pipe write, and so on.
call(java.util.concurrent.Callable), this method provides an opportunity to inspect the actual
Callableobject given to
Channel.call(Callable)from the other side, whereas
call(java.util.concurrent.Callable)only provides an opaque blob that itself may wrap the actual user-given operations.
op- The original callable object given to
stem- Computation that represents the invocation of
opas well as any additional decoration done by other
Callablethat represents the decorated computation, which normally executes some pre-processing, then delegates to the
stem, then performs some cleanup. If there's nothing to filter, return
RuntimeException- Any exception thrown from this method will be propagated to the other side as if the execution of the callable had failed with this exception.
Copyright © 2004–2022. All rights reserved.