K - the key type of this cache configurationV - the value typepublic class PreJoinCacheConfig<K,V> extends CacheConfig<K,V> implements IdentifiedDataSerializable
CacheConfig is used to communicate cache configurations in pre-join cache operations when cluster
version is at least 3.9. The key difference against CacheConfig is that the key/value class names are used in its
serialized form, instead of the actual Class objects. Thus the actual key-value classes are only resolved when first
used (by means of AbstractCacheConfig.getKeyType() or AbstractCacheConfig.getValueType()). This allows resolution of
these classes from remote user code deployment repositories (which are not available while the pre-join operation is being
deserialized and executed).cacheLoaderFactory, cacheWriterFactory, expiryPolicyFactory, hotRestartConfig, isManagementEnabled, isReadThrough, isStatisticsEnabled, isStoreByValue, isWriteThrough, listenerConfigurations| Constructor and Description |
|---|
PreJoinCacheConfig() |
PreJoinCacheConfig(CacheConfig cacheConfig)
Constructor that copies given
cacheConfig's properties to a new PreJoinCacheConfig. |
PreJoinCacheConfig(CacheConfig cacheConfig,
boolean resolved) |
| Modifier and Type | Method and Description |
|---|---|
CacheConfig |
asCacheConfig() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
protected boolean |
keyValueTypesEqual(AbstractCacheConfig that) |
protected void |
readKeyValueTypes(ObjectDataInput in) |
protected void |
writeKeyValueTypes(ObjectDataOutput out) |
copy, equals, getAsReadOnly, getAsyncBackupCount, getBackupCount, getEvictionConfig, getInMemoryFormat, getManagerPrefix, getMergePolicy, getName, getNameWithPrefix, getPartitionLostListenerConfigs, getQuorumName, getTotalBackupCount, getUriString, getWanReplicationRef, hashCode, isDisablePerEntryInvalidationEvents, readData, setAsyncBackupCount, setBackupCount, setDisablePerEntryInvalidationEvents, setEvictionConfig, setInMemoryFormat, setManagerPrefix, setMergePolicy, setName, setPartitionLostListenerConfigs, setQuorumName, setUriString, setWanReplicationRef, toString, writeDataaddCacheEntryListenerConfiguration, createConcurrentSet, getCacheEntryListenerConfigurations, getCacheLoaderFactory, getCacheWriterFactory, getExpiryPolicyFactory, getHotRestartConfig, getKeyClassName, getKeyType, getValueClassName, getValueType, isManagementEnabled, isReadThrough, isStatisticsEnabled, isStoreByValue, isWriteThrough, removeCacheEntryListenerConfiguration, setCacheLoaderFactory, setCacheWriterFactory, setClassLoader, setExpiryPolicyFactory, setHotRestartConfig, setKeyClassName, setKeyType, setListenerConfigurations, setManagementEnabled, setReadThrough, setStatisticsEnabled, setStoreByValue, setTypes, setValueClassName, setValueType, setWriteThroughclone, finalize, getClass, notify, notifyAll, wait, wait, waitreadData, writeDatapublic PreJoinCacheConfig()
public PreJoinCacheConfig(CacheConfig cacheConfig)
cacheConfig's properties to a new PreJoinCacheConfig. It is assumed that
the given cacheConfig's key-value types have already been resolved to loaded classes.cacheConfig - the original CacheConfig to copy into a new PreJoinCacheConfigpublic PreJoinCacheConfig(CacheConfig cacheConfig, boolean resolved)
protected void writeKeyValueTypes(ObjectDataOutput out) throws IOException
writeKeyValueTypes in class CacheConfig<K,V>IOExceptionprotected void readKeyValueTypes(ObjectDataInput in) throws IOException
readKeyValueTypes in class CacheConfig<K,V>IOExceptionpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic CacheConfig asCacheConfig()
CacheConfigprotected boolean keyValueTypesEqual(AbstractCacheConfig that)
keyValueTypesEqual in class AbstractCacheConfig<K,V>Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.