public interface IRpcFactory
Modifier and Type | Method and Description |
---|---|
<TServiceInterface> |
createClient(java.lang.Class<TServiceInterface> clazz)
Creates RPC client for the given interface.
|
<TServiceInterface> |
createPerClientInstanceService(IFunction<TServiceInterface> serviceFactoryMethod,
java.lang.Class<TServiceInterface> clazz)
Creates per-client-instance RPC service for the given interface.
|
<TServiceInterface> |
createSingleInstanceService(TServiceInterface service,
java.lang.Class<TServiceInterface> clazz)
Creates single-instance RPC service for the given interface.
|
<TServiceInterface> IRpcClient<TServiceInterface> createClient(java.lang.Class<TServiceInterface> clazz)
clazz
- service interface type.<TServiceInterface> IRpcService<TServiceInterface> createSingleInstanceService(TServiceInterface service, java.lang.Class<TServiceInterface> clazz)
service
- instance implementing the given service interface.clazz
- service interface type.<TServiceInterface> IRpcService<TServiceInterface> createPerClientInstanceService(IFunction<TServiceInterface> serviceFactoryMethod, java.lang.Class<TServiceInterface> clazz)
serviceFactoryMethod
- factory method used to create the service instance when the client is connectedclazz
- service interface type