public abstract class AbstractListenableStorageEngine<K,V> extends Object implements ListenableStorageEngine<K,V>
| Constructor and Description |
|---|
AbstractListenableStorageEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireCleared() |
protected void |
fireCopied(int hash,
long oldEncoding,
long newEncoding,
int metadata) |
protected void |
fireFreed(long encoding,
int hash,
ByteBuffer binaryKey,
boolean removed) |
protected void |
fireRecovered(Callable<K> key,
Callable<V> value,
ByteBuffer binaryKey,
ByteBuffer binaryValue,
int hash,
int metadata,
long encoding) |
protected void |
fireWritten(K key,
V value,
ByteBuffer binaryKey,
ByteBuffer binaryValue,
int hash,
int metadata,
long encoding) |
protected boolean |
hasListeners() |
protected boolean |
hasRecoveryListeners() |
void |
registerListener(StorageEngineListener<? super K,? super V> listener) |
public void registerListener(StorageEngineListener<? super K,? super V> listener)
registerListener in interface ListenableStorageEngine<K,V>protected final boolean hasListeners()
protected final boolean hasRecoveryListeners()
protected final void fireRecovered(Callable<K> key, Callable<V> value, ByteBuffer binaryKey, ByteBuffer binaryValue, int hash, int metadata, long encoding)
protected final void fireWritten(K key, V value, ByteBuffer binaryKey, ByteBuffer binaryValue, int hash, int metadata, long encoding)
protected final void fireFreed(long encoding,
int hash,
ByteBuffer binaryKey,
boolean removed)
protected final void fireCleared()
protected final void fireCopied(int hash,
long oldEncoding,
long newEncoding,
int metadata)
Copyright © 2015–2024. All rights reserved.