public class PeerUtil extends Object
| Constructor and Description |
|---|
PeerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <S extends InvocationProvider,T extends InvocationService<?>> |
createProviderProxy(Class<S> clazz,
T svc,
Client client)
Creates a proxy object implementing the specified provider interface (a subinterface of
InvocationProvider that forwards requests to the given service implementation
(a subinterface of InvocationService corresponding to the provider interface)
on the specified client. |
public static <S extends InvocationProvider,T extends InvocationService<?>> S createProviderProxy(Class<S> clazz, T svc, Client client)
InvocationProvider that forwards requests to the given service implementation
(a subinterface of InvocationService corresponding to the provider interface)
on the specified client. This is useful for server entities that need to call a method
either on the current server (with null as the caller parameter) or on a
peer server.clazz - the subclass of InvocationProvider desired to be implementedsvc - the implementation of the corresponding subclass of InvocationServiceclient - the client to pass to the service methodsCopyright © 2015. All rights reserved.