public abstract class AbstractRemoteInvocationServiceCallerWithClientMap extends AbstractRemoteInvocationServiceCaller
RemoteInvocationServiceCaller
using a map of
pre-registered
service clients.AbstractRemoteInvocationServiceCaller.RemoteInvocationServiceQueueImpl, AbstractRemoteInvocationServiceCaller.ServiceCallData<RESULT>
AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue, AbstractRemoteInvocationCaller.RequestBuilder, AbstractRemoteInvocationCaller.TransactionalCallBuilder
Modifier and Type | Field and Description |
---|---|
private Map<Class<? extends RemoteInvocationService>,RemoteInvocationService> |
serviceClientMap |
CDI_NAME
Constructor and Description |
---|
AbstractRemoteInvocationServiceCallerWithClientMap()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected <SERVICE extends RemoteInvocationService> |
getServiceClient(Class<SERVICE> serviceInterface) |
protected <SERVICE extends RemoteInvocationService> |
registerService(Class<SERVICE> serviceInterface,
SERVICE serviceClient)
This method registers a
service-client . |
addCall, createQueue, createRemoteInvocationTransactionalCalls, createRequest, getServiceClient, getServiceClient
createQueue, getCurrentQueue, getDefaultFailureCallback, getTransactionMode, getXsrfToken, handleFailure, handleResponse, newQueue, newQueue, newQueue, newQueueForAutoCommit, nextRequestId, performRequest, performRequest, requireCurrentQueue, setDefaultFailureCallback, setTransactionMode
createLogger, doInitialize, getLogger
doInitialized, getInitializationState, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentQueue, newQueue, newQueue, newQueue
private final Map<Class<? extends RemoteInvocationService>,RemoteInvocationService> serviceClientMap
getServiceClient(Class)
public AbstractRemoteInvocationServiceCallerWithClientMap()
protected <SERVICE extends RemoteInvocationService> void registerService(Class<SERVICE> serviceInterface, SERVICE serviceClient)
service-client
.SERVICE
- is the generic type of serviceInterface
.serviceInterface
- is the interface of the RemoteInvocationService
.serviceClient
- is the client stub for the given serviceInterface
.protected <SERVICE extends RemoteInvocationService> SERVICE getServiceClient(Class<SERVICE> serviceInterface)
getServiceClient
in class AbstractRemoteInvocationServiceCaller
SERVICE
- is the generic type of serviceInterface
.serviceInterface
- is the interface of the RemoteInvocationService
.RemoteInvocationServiceQueue.getServiceClient(Class, Class,
Consumer, Consumer)
Copyright © 2001–2016 mmm-Team. All rights reserved.