public abstract class AbstractSegmentedAdvancedLoadWriteStore<K,V> extends Object implements SegmentedAdvancedLoadWriteStore<K,V>
getKeyMapper()
. These methods are also all
declared final as to make sure the end user does not implement the incorrect method. All other methods must be
implemented as normal.AdvancedCacheExpirationWriter.ExpirationPurgeListener<K,V>
AdvancedCacheWriter.PurgeListener<K>
Constructor and Description |
---|
AbstractSegmentedAdvancedLoadWriteStore() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object key)
Returns true if the storage contains an entry associated with the given key.
|
boolean |
delete(Object key) |
protected abstract ToIntFunction<Object> |
getKeyMapper() |
MarshallableEntry<K,V> |
loadEntry(Object key)
Fetches an entry from the storage.
|
void |
write(MarshallableEntry<? extends K,? extends V> entry)
Persists the entry to the storage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSegments, clear, contains, delete, entryPublisher, get, publishKeys, purge, removeSegments, size, write
destroy, isAvailable
entryPublisher, publishKeys, size
init
purge
clear
bulkUpdate, deleteBatch, init
public AbstractSegmentedAdvancedLoadWriteStore()
protected abstract ToIntFunction<Object> getKeyMapper()
public final MarshallableEntry<K,V> loadEntry(Object key)
CacheLoader
MarshallableEntry
needs to be created here, InitializationContext.getMarshallableEntryFactory()
()} and InitializationContext.getByteBufferFactory()
should be used.loadEntry
in interface CacheLoader<K,V>
public final boolean contains(Object key)
CacheLoader
contains
in interface CacheLoader<K,V>
public final void write(MarshallableEntry<? extends K,? extends V> entry)
CacheWriter
write
in interface CacheWriter<K,V>
MarshallableEntry
public final boolean delete(Object key)
delete
in interface CacheWriter<K,V>
Copyright © 2021 JBoss by Red Hat. All rights reserved.