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, writeData
addCacheEntryListenerConfiguration, 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, setWriteThrough
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
readData, writeData
public 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 PreJoinCacheConfig
public PreJoinCacheConfig(CacheConfig cacheConfig, boolean resolved)
protected void writeKeyValueTypes(ObjectDataOutput out) throws IOException
writeKeyValueTypes
in class CacheConfig<K,V>
IOException
protected void readKeyValueTypes(ObjectDataInput in) throws IOException
readKeyValueTypes
in class CacheConfig<K,V>
IOException
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public CacheConfig asCacheConfig()
CacheConfig
protected boolean keyValueTypesEqual(AbstractCacheConfig that)
keyValueTypesEqual
in class AbstractCacheConfig<K,V>
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.