K - the key type of this cache configurationV - the value typepublic class PreJoinCacheConfig<K,V> extends CacheConfig<K,V> implements Versioned, 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, classLoader, expiryPolicyFactory, hotRestartConfig, isManagementEnabled, isReadThrough, isStatisticsEnabled, isStoreByValue, isWriteThrough, listenerConfigurations, serializationService| 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 |
|---|---|
static CacheConfig |
asCacheConfig(CacheConfig cacheConfig) |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
protected boolean |
keyValueTypesEqual(AbstractCacheConfig that) |
static PreJoinCacheConfig |
of(CacheConfig cacheConfig) |
protected void |
readFactories(ObjectDataInput in) |
protected void |
readKeyValueTypes(ObjectDataInput in) |
protected void |
readListenerConfigurations(ObjectDataInput in) |
protected void |
readTenant(ObjectDataInput in) |
protected void |
writeFactories(ObjectDataOutput out) |
protected void |
writeKeyValueTypes(ObjectDataOutput out) |
protected void |
writeListenerConfigurations(ObjectDataOutput out) |
protected void |
writeTenant(ObjectDataOutput out) |
copy, equals, getAsReadOnly, getAsyncBackupCount, getBackupCount, getEvictionConfig, getInMemoryFormat, getManagerPrefix, getMergePolicy, getName, getNameWithPrefix, getPartitionLostListenerConfigs, getProvidedMergeTypes, 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, getListenerConfigurations, getValueClassName, getValueType, hasListenerConfiguration, isManagementEnabled, isReadThrough, isStatisticsEnabled, isStoreByValue, isWriteThrough, removeCacheEntryListenerConfiguration, setCacheLoaderFactory, setCacheWriterFactory, setClassLoader, setExpiryPolicyFactory, setHotRestartConfig, setKeyClassName, setKeyType, setListenerConfigurations, 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>IOExceptionprotected void writeTenant(ObjectDataOutput out) throws IOException
writeTenant in class CacheConfig<K,V>IOExceptionprotected void readTenant(ObjectDataInput in) throws IOException
readTenant in class CacheConfig<K,V>IOExceptionprotected void writeFactories(ObjectDataOutput out) throws IOException
writeFactories in class CacheConfig<K,V>IOExceptionprotected void readFactories(ObjectDataInput in) throws IOException
readFactories in class CacheConfig<K,V>IOExceptionprotected void writeListenerConfigurations(ObjectDataOutput out) throws IOException
writeListenerConfigurations in class CacheConfig<K,V>IOExceptionprotected void readListenerConfigurations(ObjectDataInput in) throws IOException
readListenerConfigurations in class CacheConfig<K,V>IOExceptionpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableprotected boolean keyValueTypesEqual(AbstractCacheConfig that)
keyValueTypesEqual in class AbstractCacheConfig<K,V>public static CacheConfig asCacheConfig(CacheConfig cacheConfig)
CacheConfig that is not a PreJoinCacheConfigpublic static PreJoinCacheConfig of(CacheConfig cacheConfig)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.