public interface Caller<T>
Modifier and Type | Method and Description |
---|---|
T |
call()
Returns an instance of the proxy that can invoke service methods on the
service described by
T . |
T |
call(RemoteCallback<?> callback)
Returns an instance of the proxy that can invoke service methods on the
service described by
T . |
T |
call(RemoteCallback<?> callback,
ErrorCallback<?> errorCallback)
Returns an instance of the proxy that can invoke service methods on the
service described by
T . |
T call()
T
.T
.T call(RemoteCallback<?> callback)
T
.callback
- the callback to be invoked when the remote call has completed in
success. In the case of an error, a default error callback will be
notified. Which one depends on the proxy implementation.
The provided callback must not be null.
T
.T call(RemoteCallback<?> callback, ErrorCallback<?> errorCallback)
T
.callback
- the callback to be invoked when the remote call has completed in
success. In the case of an error, a default error callback will be
notified. Which one depends on the proxy implementation.
The callback must not be null.
errorCallback
- the callback to be invoked when the remote call has completed
in failure. No callback is invoked in the case of success.
The provided callback must not be null.
T
.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.