com.hazelcast.client.impl
Class DefaultClientExtension

java.lang.Object
  extended by com.hazelcast.client.impl.DefaultClientExtension
All Implemented Interfaces:
ClientExtension

public class DefaultClientExtension
extends Object
implements ClientExtension


Field Summary
protected  HazelcastClientInstanceImpl client
           
protected static ILogger LOGGER
           
 
Constructor Summary
DefaultClientExtension()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final ILogger LOGGER

client

protected volatile HazelcastClientInstanceImpl client
Constructor Detail

DefaultClientExtension

public DefaultClientExtension()
Method Detail

beforeStart

public void beforeStart(HazelcastClientInstanceImpl client)
Description copied from interface: ClientExtension
Called before client is started

Specified by:
beforeStart in interface ClientExtension

afterStart

public void afterStart(HazelcastClientInstanceImpl client)
Description copied from interface: ClientExtension
Called after node is started

Specified by:
afterStart in interface ClientExtension

createSerializationService

public SerializationService createSerializationService()
Description copied from interface: ClientExtension
Creates a SerializationService instance to be used by this client.

Specified by:
createSerializationService in interface ClientExtension
Returns:
the created SerializationService instance

getPartitioningStrategy

protected PartitioningStrategy getPartitioningStrategy(ClassLoader configClassLoader)
                                                throws Exception
Throws:
Exception

createSocketInterceptor

public SocketInterceptor createSocketInterceptor()
Description copied from interface: ClientExtension
Creates a SocketInterceptor to be used by this client if available, otherwise returns null.

Specified by:
createSocketInterceptor in interface ClientExtension
Returns:
the created SocketInterceptor instance if available, otherwise null

createSocketChannelWrapperFactory

public SocketChannelWrapperFactory createSocketChannelWrapperFactory()
Description copied from interface: ClientExtension
Creates a SocketChannelWrapperFactory instance to be used by this client.

Specified by:
createSocketChannelWrapperFactory in interface ClientExtension
Returns:
the created SocketChannelWrapperFactory instance

getServiceProxy

public <T> Class<? extends ClientProxy> getServiceProxy(Class<T> service)
Description copied from interface: ClientExtension
Returns a proxy for the corresponding service.

Specified by:
getServiceProxy in interface ClientExtension
Parameters:
service - service for the proxy to create.
Returns:
proxy for the service.

createNearCacheManager

public NearCacheManager createNearCacheManager()
Description copied from interface: ClientExtension
Creates a NearCacheManager instance to be used by this client.

Specified by:
createNearCacheManager in interface ClientExtension
Returns:
the created NearCacheManager instance


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.