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, waitaddSegments, clear, contains, delete, entryPublisher, get, publishKeys, purge, removeSegments, size, writedestroy, isAvailableentryPublisher, publishKeys, sizeinitpurgeclearbulkUpdate, deleteBatch, initpublic AbstractSegmentedAdvancedLoadWriteStore()
protected abstract ToIntFunction<Object> getKeyMapper()
public final MarshallableEntry<K,V> loadEntry(Object key)
CacheLoaderMarshallableEntry 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)
CacheLoadercontains in interface CacheLoader<K,V>public final void write(MarshallableEntry<? extends K,? extends V> entry)
CacheWriterwrite in interface CacheWriter<K,V>MarshallableEntrypublic final boolean delete(Object key)
delete in interface CacheWriter<K,V>Copyright © 2021 JBoss by Red Hat. All rights reserved.