org.ehcache.clustered.client.service
Interface EntityService

All Superinterfaces:
org.ehcache.spi.service.Service

public interface EntityService
extends org.ehcache.spi.service.Service

Provides support for accessing server entities through the Cache Manager connection


Method Summary
<E extends org.terracotta.connection.entity.Entity,C>
ClientEntityFactory<E,C>
newClientEntityFactory(java.lang.String entityIdentifier, java.lang.Class<E> entityType, long entityVersion, C configuration)
          Creates a factory class used to create, fetch and destroy server entities through the same connection used by this CacheManager
 
Methods inherited from interface org.ehcache.spi.service.Service
start, stop
 

Method Detail

newClientEntityFactory

<E extends org.terracotta.connection.entity.Entity,C> ClientEntityFactory<E,C> newClientEntityFactory(java.lang.String entityIdentifier,
                                                                                                      java.lang.Class<E> entityType,
                                                                                                      long entityVersion,
                                                                                                      C configuration)
Creates a factory class used to create, fetch and destroy server entities through the same connection used by this CacheManager

Type Parameters:
E - The entity type, extending Entity
C - The configuration class
Parameters:
entityIdentifier - The entity name
entityType - The entity class
entityVersion - The entity version
configuration - Any configuration object that might be pass when creating the entity, or null if none
Returns:
The created factory