Interface FlushRequester
- All Known Implementing Classes:
MemStoreFlusher
Request a flush.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Register a FlushRequestListenerboolean
requestDelayedFlush
(HRegion region, long delay) Tell the listener the cache needs to be flushed after a delayboolean
requestFlush
(HRegion region, List<byte[]> families, FlushLifeCycleTracker tracker) Tell the listener the cache needs to be flushed.boolean
requestFlush
(HRegion region, 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
Unregister the given FlushRequestListener
-
Method Details
-
requestFlush
Tell the listener the cache needs to be flushed.- Parameters:
region
- the Region requesting the cache flush- Returns:
- true if our region is added into the queue, false otherwise
-
requestFlush
Tell the listener the cache needs to be flushed.- Parameters:
region
- the Region requesting the cache flushfamilies
- stores of region to flush, if null then use flush policy- Returns:
- true if our region is added into the queue, false otherwise
-
requestDelayedFlush
Tell the listener the cache needs to be flushed after a delay- Parameters:
region
- the Region requesting the cache flushdelay
- after how much time should the flush happen- Returns:
- true if our region is added into the queue, false otherwise
-
registerFlushRequestListener
Register a FlushRequestListener -
unregisterFlushRequestListener
Unregister the given FlushRequestListener- Returns:
- true when passed listener is unregistered successfully.
-
setGlobalMemStoreLimit
Sets the global memstore limit to a new size.
-