public class DefaultClientExtension extends Object implements ClientExtension
| Modifier and Type | Field and Description |
|---|---|
protected HazelcastClientInstanceImpl |
client |
protected static ILogger |
LOGGER |
| Constructor and Description |
|---|
DefaultClientExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterStart(HazelcastClientInstanceImpl client)
Called after node is started
|
void |
beforeStart(HazelcastClientInstanceImpl client)
Called before client is started
|
NearCacheManager |
createNearCacheManager()
Creates a
NearCacheManager instance to be used by this client. |
SerializationService |
createSerializationService()
Creates a
SerializationService instance to be used by this client. |
SocketChannelWrapperFactory |
createSocketChannelWrapperFactory()
Creates a
SocketChannelWrapperFactory instance to be used by this client. |
SocketInterceptor |
createSocketInterceptor()
Creates a
SocketInterceptor to be used by this client if available,
otherwise returns null. |
protected PartitioningStrategy |
getPartitioningStrategy(ClassLoader configClassLoader) |
<T> Class<? extends ClientProxy> |
getServiceProxy(Class<T> service)
Returns a proxy for the corresponding service.
|
protected static final ILogger LOGGER
protected volatile HazelcastClientInstanceImpl client
public void beforeStart(HazelcastClientInstanceImpl client)
ClientExtensionbeforeStart in interface ClientExtensionpublic void afterStart(HazelcastClientInstanceImpl client)
ClientExtensionafterStart in interface ClientExtensionpublic SerializationService createSerializationService()
ClientExtensionSerializationService instance to be used by this client.createSerializationService in interface ClientExtensionSerializationService instanceprotected PartitioningStrategy getPartitioningStrategy(ClassLoader configClassLoader) throws Exception
Exceptionpublic SocketInterceptor createSocketInterceptor()
ClientExtensionSocketInterceptor to be used by this client if available,
otherwise returns null.createSocketInterceptor in interface ClientExtensionSocketInterceptor instance if available,
otherwise nullpublic SocketChannelWrapperFactory createSocketChannelWrapperFactory()
ClientExtensionSocketChannelWrapperFactory instance to be used by this client.createSocketChannelWrapperFactory in interface ClientExtensionSocketChannelWrapperFactory instancepublic <T> Class<? extends ClientProxy> getServiceProxy(Class<T> service)
ClientExtensiongetServiceProxy in interface ClientExtensionservice - service for the proxy to create.public NearCacheManager createNearCacheManager()
ClientExtensionNearCacheManager instance to be used by this client.createNearCacheManager in interface ClientExtensionNearCacheManager instanceCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.