public interface Client extends InterceptorProvider, MessageObserver, ConduitSelectorHolder
Modifier and Type | Field and Description |
---|---|
static String |
KEEP_CONDUIT_ALIVE |
static String |
REQUEST_CONTEXT |
static String |
RESPONSE_CONTEXT |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Indicates that the client is no longer needed and that any resources it holds
can now be freed.
|
Bus |
getBus()
Retrieves the Bus that was used to create the Client
|
Conduit |
getConduit()
Get the Conduit that messages for this client will be sent on.
|
ConduitSelector |
getConduitSelector()
Get the ConduitSelector responsible for retreiving the Conduit.
|
Endpoint |
getEndpoint() |
Map<String,Object> |
getRequestContext()
Gets the request context used for future invocations
|
Map<String,Object> |
getResponseContext()
Gets the response context from the last invocation on this thread
|
Object[] |
invoke(BindingOperationInfo oi,
Object... params)
Invokes an operation synchronously
|
Object[] |
invoke(BindingOperationInfo oi,
Object[] params,
Map<String,Object> context)
Invokes an operation synchronously
|
Object[] |
invoke(BindingOperationInfo oi,
Object[] params,
Map<String,Object> context,
Exchange exchange)
Invokes an operation synchronously
|
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
Object... params)
Invokes an operation asynchronously
|
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
Object[] params,
Exchange exchange)
Invokes an operation asynchronously
|
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
Object[] params,
Map<String,Object> context)
Invokes an operation asynchronously
|
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
Object[] params,
Map<String,Object> context,
Exchange exchange)
Invokes an operation asynchronously
|
void |
invoke(ClientCallback callback,
QName operationName,
Object... params)
Invokes an operation asynchronously
|
void |
invoke(ClientCallback callback,
String operationName,
Object... params)
Invokes an operation asynchronously
|
Object[] |
invoke(QName operationName,
Object... params)
Invokes an operation synchronously
|
Object[] |
invoke(String operationName,
Object... params)
Invokes an operation synchronously
|
void |
invokeWrapped(ClientCallback callback,
QName operationName,
Object... params)
Invokes an operation asynchronously
|
void |
invokeWrapped(ClientCallback callback,
String operationName,
Object... params)
Invokes an operation asynchronously
|
Object[] |
invokeWrapped(QName operationName,
Object... params)
Invokes an operation synchronously
|
Object[] |
invokeWrapped(String operationName,
Object... params)
Invokes an operation synchronously
|
boolean |
isThreadLocalRequestContext()
Checks if the Request context is thread local or global.
|
void |
setConduitSelector(ConduitSelector selector)
Set the ConduitSelector responsible for retreiving the Conduit.
|
void |
setExecutor(Executor executor)
Sets the executor which is used to process Asynchronous responses.
|
void |
setThreadLocalRequestContext(boolean b)
Sets whether the request context is thread local or global to this client.
|
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors
onMessage
static final String REQUEST_CONTEXT
static final String RESPONSE_CONTEXT
static final String KEEP_CONDUIT_ALIVE
Object[] invoke(String operationName, Object... params) throws Exception
operationName
- The name of the operation to be invoked. The service namespace will be used
when looking up the BindingOperationInfo.params
- The params that matches the parts of the input message of the operation. If the
BindingOperationInfo supports unwrapping, it assumes the params are in the "unwrapped" form. If
params are in the wrapped form, use invokeWrappedException
Object[] invoke(QName operationName, Object... params) throws Exception
operationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operation. If the
BindingOperationInfo supports unwrapping, it assumes the params are in the "unwrapped" form. If
params are in the wrapped form, use invokeWrappedException
Object[] invokeWrapped(String operationName, Object... params) throws Exception
operationName
- The name of the operation to be invoked. The service namespace will be used
when looking up the BindingOperationInfo.params
- The params that matches the parts of the input message of the operationException
Object[] invokeWrapped(QName operationName, Object... params) throws Exception
operationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operationException
Object[] invoke(BindingOperationInfo oi, Object... params) throws Exception
oi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationException
Object[] invoke(BindingOperationInfo oi, Object[] params, Map<String,Object> context) throws Exception
oi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationcontext
- Optional (can be null) contextual information for the invocationException
Object[] invoke(BindingOperationInfo oi, Object[] params, Map<String,Object> context, Exchange exchange) throws Exception
oi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationcontext
- Optional (can be null) contextual information for the invocationexchange
- The Exchange to be used for the invocationException
void invoke(ClientCallback callback, String operationName, Object... params) throws Exception
callback
- The callback that is called when the response is readyoperationName
- The name of the operation to be invoked. The service namespace will be used
when looking up the BindingOperationInfo.params
- The params that matches the parts of the input message of the operation. If the
BindingOperationInfo supports unwrapping, it assumes the params are in the "unwrapped" form. If
params are in the wrapped form, use invokeWrappedException
void invoke(ClientCallback callback, QName operationName, Object... params) throws Exception
callback
- The callback that is called when the response is readyoperationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operation. If the
BindingOperationInfo supports unwrapping, it assumes the params are in the "unwrapped" form. If
params are in the wrapped form, use invokeWrappedException
void invokeWrapped(ClientCallback callback, String operationName, Object... params) throws Exception
callback
- The callback that is called when the response is readyoperationName
- The name of the operation to be invoked. The service namespace will be used
when looking up the BindingOperationInfo.params
- The params that matches the parts of the input message of the operationException
void invokeWrapped(ClientCallback callback, QName operationName, Object... params) throws Exception
callback
- The callback that is called when the response is readyoperationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operationException
void invoke(ClientCallback callback, BindingOperationInfo oi, Object... params) throws Exception
callback
- The callback that is called when the response is readyoi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationException
void invoke(ClientCallback callback, BindingOperationInfo oi, Object[] params, Map<String,Object> context) throws Exception
callback
- The callback that is called when the response is readyoi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationcontext
- contextual information for the invocationException
void invoke(ClientCallback callback, BindingOperationInfo oi, Object[] params, Exchange exchange) throws Exception
callback
- The callback that is called when the response is readyoi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationexchange
- The Exchange to be used for the invocationException
void invoke(ClientCallback callback, BindingOperationInfo oi, Object[] params, Map<String,Object> context, Exchange exchange) throws Exception
callback
- The callback that is called when the response is readyoi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationcontext
- Optional (can be null) contextual information for the invocationexchange
- Optional (can be null) The Exchange to be used for the invocationException
Map<String,Object> getRequestContext()
Map<String,Object> getResponseContext()
void setThreadLocalRequestContext(boolean b)
b
- boolean isThreadLocalRequestContext()
Endpoint getEndpoint()
Conduit getConduit()
ConduitSelector getConduitSelector()
getConduitSelector
in interface ConduitSelectorHolder
void setConduitSelector(ConduitSelector selector)
setConduitSelector
in interface ConduitSelectorHolder
selector
- the ConduitSelector to usevoid destroy()
void setExecutor(Executor executor)
executor
- Bus getBus()
Copyright © 2016 JBoss by Red Hat. All rights reserved.