@InterfaceAudience.Private public interface FlushRequester
Modifier and Type | Method and Description |
---|---|
void |
registerFlushRequestListener(FlushRequestListener listener)
Register a FlushRequestListener n
|
boolean |
requestDelayedFlush(HRegion region,
long delay)
Tell the listener the cache needs to be flushed after a delay
|
boolean |
requestFlush(HRegion region,
FlushLifeCycleTracker tracker)
Tell the listener the cache needs to be flushed.
|
boolean |
requestFlush(HRegion region,
List<byte[]> families,
FlushLifeCycleTracker tracker)
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 n * @return true when passed listener is unregistered
successfully.
|
boolean requestFlush(HRegion region, FlushLifeCycleTracker tracker)
region
- the Region requesting the cache flushboolean requestFlush(HRegion region, List<byte[]> families, FlushLifeCycleTracker tracker)
region
- the Region requesting the cache flushfamilies
- stores of region to flush, if null then use flush policyboolean requestDelayedFlush(HRegion region, long delay)
region
- the Region requesting the cache flushdelay
- after how much time should the flush happenvoid registerFlushRequestListener(FlushRequestListener listener)
boolean unregisterFlushRequestListener(FlushRequestListener listener)
void setGlobalMemStoreLimit(long globalMemStoreSize)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.