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, writeData
addCacheEntryListenerConfiguration, 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, 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
protected void writeTenant(ObjectDataOutput out) throws IOException
writeTenant
in class CacheConfig<K,V>
IOException
protected void readTenant(ObjectDataInput in) throws IOException
readTenant
in class CacheConfig<K,V>
IOException
protected void writeFactories(ObjectDataOutput out) throws IOException
writeFactories
in class CacheConfig<K,V>
IOException
protected void readFactories(ObjectDataInput in) throws IOException
readFactories
in class CacheConfig<K,V>
IOException
protected void writeListenerConfigurations(ObjectDataOutput out) throws IOException
writeListenerConfigurations
in class CacheConfig<K,V>
IOException
protected void readListenerConfigurations(ObjectDataInput in) throws IOException
readListenerConfigurations
in class CacheConfig<K,V>
IOException
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
protected boolean keyValueTypesEqual(AbstractCacheConfig that)
keyValueTypesEqual
in class AbstractCacheConfig<K,V>
public static CacheConfig asCacheConfig(CacheConfig cacheConfig)
CacheConfig
that is not a PreJoinCacheConfig
public static PreJoinCacheConfig of(CacheConfig cacheConfig)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.