@InterfaceAudience.Private public interface FlushRequester
Modifier and Type | Method and Description |
---|---|
void |
registerFlushRequestListener(FlushRequestListener listener)
Register a FlushRequestListener
|
void |
requestDelayedFlush(Region region,
long delay,
boolean forceFlushAllStores)
Tell the listener the cache needs to be flushed after a delay
|
void |
requestFlush(Region region,
boolean forceFlushAllStores)
Tell the listener the cache needs to be flushed.
|
void |
setGlobalMemstoreLimit(long globalMemStoreSize)
Sets the global memstore limit to a new size.
|
boolean |
unregisterFlushRequestListener(FlushRequestListener listener)
Unregister the given FlushRequestListener
|
void requestFlush(Region region, boolean forceFlushAllStores)
region
- the Region requesting the cache flushforceFlushAllStores
- whether we want to flush all stores. e.g., when request from log
rolling.void requestDelayedFlush(Region region, long delay, boolean forceFlushAllStores)
region
- the Region requesting the cache flushdelay
- after how much time should the flush happenforceFlushAllStores
- whether we want to flush all stores. e.g., when request from log
rolling.void registerFlushRequestListener(FlushRequestListener listener)
listener
- boolean unregisterFlushRequestListener(FlushRequestListener listener)
listener
- void setGlobalMemstoreLimit(long globalMemStoreSize)
globalMemStoreSize
- Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.