Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.config.scheme
Class CacheStoreScheme

java.lang.Object
  extended by com.tangosol.coherence.config.scheme.AbstractScheme
      extended by com.tangosol.coherence.config.scheme.CacheStoreScheme

All Implemented Interfaces:
BuilderCustomization, Scheme

public class CacheStoreScheme
extends AbstractScheme
implements BuilderCustomization

The CacheStoreScheme class is responsible for building a fully configured instance of a CacheStore, CacheLoader or remote NamedCache. The remote cache is only used within a ReadWriteBackingMap scheme. Also, even though bundling is specified in the CacheStore scheme, it is not used here. Rather, it is used by ReadWriteBackingMapScheme, which contains a CacheStoreScheme.

Since:
Coherence 12.1.2
Author:
pfm 2011.11.30

Constructor Summary
CacheStoreScheme()
           

 

Method Summary
 BundleManager getBundleManager()
          Return the BundleManager.
 ParameterizedBuilder getCustomBuilder()
          Obtains the custom ParameterizedBuilder.
 RemoteCacheScheme getRemoteCacheScheme()
          Return the RemoteCacheScheme.
protected  boolean isSerializerCompatible(Service serviceThis, Service serviceThat)
          Determines whether or not the serializers for the specified services are compatible.
 java.lang.Object realize(com.tangosol.config.expression.ParameterResolver resolver, MapBuilder.Dependencies dependencies)
          Realize (ensure) a remote NamedCache, CacheStore, CacheLoader, or BinaryEntryStore as specified by the builder.
 java.lang.Object realizeLocal(com.tangosol.config.expression.ParameterResolver resolver, MapBuilder.Dependencies dependencies)
          Return an instance of a CacheStore, CacheLoader or a BinaryEntryStore.
 void setBundleManager(BundleManager initializer)
          Set the BundleManager.
 void setCustomBuilder(ParameterizedBuilder bldr)
          Sets the ParameterizedBuilder to be used as the alternate builder.
 void setRemoteCacheScheme(RemoteCacheScheme bldr)
          Set the RemoteCacheScheme.

 

Methods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme
getSchemeName, isAnonymous, setSchemeName, validate

 

Constructor Detail

CacheStoreScheme

public CacheStoreScheme()

Method Detail

realizeLocal

public java.lang.Object realizeLocal(com.tangosol.config.expression.ParameterResolver resolver,
                                     MapBuilder.Dependencies dependencies)
Return an instance of a CacheStore, CacheLoader or a BinaryEntryStore.
Parameters:
resolver - the ParameterResolver
dependencies - the MapBuilder.Dependencies

realize

public java.lang.Object realize(com.tangosol.config.expression.ParameterResolver resolver,
                                MapBuilder.Dependencies dependencies)
Realize (ensure) a remote NamedCache, CacheStore, CacheLoader, or BinaryEntryStore as specified by the builder. The returned cache is fully configured and ready to be used.
Parameters:
resolver - the ParameterResolver
context - the MapRealizeContext
Returns:
the NamedCache, CacheStore, CacheLoader, or BinaryEntryStore

getBundleManager

public BundleManager getBundleManager()
Return the BundleManager.
Returns:
the BundleManager

setBundleManager

@Injectable(value="operation-bundling")
public void setBundleManager(BundleManager initializer)
Set the BundleManager.
Parameters:
initializer - the BundleManager

getRemoteCacheScheme

public RemoteCacheScheme getRemoteCacheScheme()
Return the RemoteCacheScheme.
Returns:
the RemoteCacheScheme

setRemoteCacheScheme

@Injectable(value="remote-cache-scheme")
public void setRemoteCacheScheme(RemoteCacheScheme bldr)
Set the RemoteCacheScheme.
Parameters:
bldr - the RemoteCacheScheme

getCustomBuilder

public ParameterizedBuilder getCustomBuilder()
Obtains the custom ParameterizedBuilder.
Specified by:
getCustomBuilder in interface BuilderCustomization
Returns:
the ParameterizedBuilder

setCustomBuilder

public void setCustomBuilder(ParameterizedBuilder bldr)
Sets the ParameterizedBuilder to be used as the alternate builder.
Specified by:
setCustomBuilder in interface BuilderCustomization
Parameters:
bldr - the ParameterizedBuilder

isSerializerCompatible

protected boolean isSerializerCompatible(Service serviceThis,
                                         Service serviceThat)
Determines whether or not the serializers for the specified services are compatible. In other words, this method returns true if object serialized with the first Serializer can be deserialized by the second and visa versa.
Parameters:
serviceThis - the first Service
serviceThat - the second Service
Returns:
true if the two Serializers are stream compatible

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.