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  NearCacheManagerinstance to be used by this client. | 
| InternalSerializationService | createSerializationService(byte version)Creates a  InternalSerializationServiceinstance to be used by this client. | 
| <T> ClientProxyFactory | createServiceProxyFactory(Class<T> service)Creates a  ClientProxyFactoryfor the supplied service class. | 
| ChannelFactory | createSocketChannelWrapperFactory()Creates a  ChannelFactoryinstance to be used by this client. | 
| SocketInterceptor | createSocketInterceptor()Creates a  SocketInterceptorto be used by this client if available,
 otherwise returnsnull | 
| MemoryStats | getMemoryStats()Returns MemoryStats of for the JVM and current HazelcastInstance. | 
| protected PartitioningStrategy | getPartitioningStrategy(ClassLoader configClassLoader) | 
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 InternalSerializationService createSerializationService(byte version)
ClientExtensionInternalSerializationService instance to be used by this client.createSerializationService in interface ClientExtensionversion - serialization version to be created. Values less than 1 will be ignored and max supported version
                will be usedInternalSerializationService instanceprotected PartitioningStrategy getPartitioningStrategy(ClassLoader configClassLoader) throws Exception
Exceptionpublic SocketInterceptor createSocketInterceptor()
ClientExtensionSocketInterceptor to be used by this client if available,
 otherwise returns nullcreateSocketInterceptor in interface ClientExtensionSocketInterceptor instance if available,
 +          otherwise nullpublic ChannelFactory createSocketChannelWrapperFactory()
ClientExtensionChannelFactory instance to be used by this client.createSocketChannelWrapperFactory in interface ClientExtensionChannelFactory instancepublic <T> ClientProxyFactory createServiceProxyFactory(Class<T> service)
ClientExtensionClientProxyFactory for the supplied service class. Currently only the MapService is supported.createServiceProxyFactory in interface ClientExtensionservice - service for the proxy to create.ClientProxyFactory for the service.public MemoryStats getMemoryStats()
ClientExtensiongetMemoryStats in interface ClientExtensionpublic NearCacheManager createNearCacheManager()
ClientExtensionNearCacheManager instance to be used by this client.createNearCacheManager in interface ClientExtensionNearCacheManager instanceCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.