Interface FlushRequester
- All Known Implementing Classes:
MemStoreFlusher
Request a flush.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegister a FlushRequestListenerbooleanrequestDelayedFlush(HRegion region, long delay) Tell the listener the cache needs to be flushed after a delaybooleanrequestFlush(HRegion region, List<byte[]> families, FlushLifeCycleTracker tracker) Tell the listener the cache needs to be flushed.booleanrequestFlush(HRegion region, FlushLifeCycleTracker tracker) Tell the listener the cache needs to be flushed.voidsetGlobalMemStoreLimit(long globalMemStoreSize) Sets the global memstore limit to a new size.booleanUnregister 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.
-