public abstract class StatelessRemoteCaller<T> extends StatelessRemoteCall
call(StatelessClientContext).DEFAULT_VERSION_FILTER| Constructor and Description |
|---|
StatelessRemoteCaller()
Creates a new wrapper which applies a single filter to the
client context.
|
StatelessRemoteCaller(TagFilter versionIdFilter,
TagFilter appIdFilter,
TagFilter clientIdFilter)
Creates a new wrapper which applies the given filters to the
client context.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
call(StatelessClientContext context)
The service implementation, executed on behalf of the client
with the given context.
|
T |
execute(StatelessClientContext context)
Invokes the service implementation on behalf of the client with
the given context.
|
assertFilterMatch, assertFilterMatch, getAppIdFilter, getClientIdFilter, getVersionIdFilter, handleSuccess, startCall, wrapFailurepublic StatelessRemoteCaller(TagFilter versionIdFilter, TagFilter appIdFilter, TagFilter clientIdFilter)
versionIdFilter - The version ID filter, which may be null.appIdFilter - The application ID filter, which may be null.clientIdFilter - The client ID filter, which may be null.public StatelessRemoteCaller()
public T execute(StatelessClientContext context) throws RemoteException
context - The context.RemoteException - Thrown if the implementation fails;
it wraps the throwable thrown by the actual implementation.protected abstract T call(StatelessClientContext context) throws Exception
context - The context.Exception - Thrown if the implementation fails.Copyright © 2015. All Rights Reserved.