public <E extends SerializationGroupMember<K, V, G>> BackingCacheEntryStore<K, V, E> createIntegratedObjectStore(final String beanName, IdentifierFactory<K> identifierFactory, PassivationManager<K, E> passivationManager, StatefulTimeoutInfo timeout) {
Cache<?, ?> groupCache = this.groupCache.getValue();
Configuration groupCacheConfiguration = groupCache.getCacheConfiguration();
EmbeddedCacheManager container = groupCache.getCacheManager();
ConfigurationBuilder builder = new ConfigurationBuilder().read(groupCacheConfiguration);
builder.storeAsBinary().enable().storeKeysAsBinary(true).storeValuesAsBinary(false);
if (this.maxSize > 0) {
if (!groupCacheConfiguration.eviction().strategy().isEnabled()) {
builder.eviction().strategy(EvictionStrategy.LRU);
}
builder.eviction().maxEntries(this.maxSize);