com.hazelcast.client
Interface ClientExtension

All Known Implementing Classes:
DefaultClientExtension

public interface ClientExtension

ClientExtension is a client extension mechanism to be able to plug different implementations of some modules, like; SerializationService, SocketChannelWrapperFactory etc.


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.
<T> Class<? extends ClientProxy>
getServiceProxy(Class<T> service)
          Returns a proxy for the corresponding service.
 

Method Detail

beforeStart

void beforeStart(HazelcastClientInstanceImpl client)
Called before client is started


afterStart

void afterStart(HazelcastClientInstanceImpl client)
Called after node is started


createSerializationService

SerializationService createSerializationService()
Creates a SerializationService instance to be used by this client.

Returns:
the created SerializationService instance

createSocketInterceptor

SocketInterceptor createSocketInterceptor()
Creates a SocketInterceptor to be used by this client if available, otherwise returns null.

Returns:
the created SocketInterceptor instance if available, otherwise null

createSocketChannelWrapperFactory

SocketChannelWrapperFactory createSocketChannelWrapperFactory()
Creates a SocketChannelWrapperFactory instance to be used by this client.

Returns:
the created SocketChannelWrapperFactory instance

createNearCacheManager

NearCacheManager createNearCacheManager()
Creates a NearCacheManager instance to be used by this client.

Returns:
the created NearCacheManager instance

getServiceProxy

<T> Class<? extends ClientProxy> getServiceProxy(Class<T> service)
Returns a proxy for the corresponding service.

Parameters:
service - service for the proxy to create.
Returns:
proxy for the service.
Throws:
IllegalArgumentException - if type is not known


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