Package com.tangosol.io.journal
Class FlashJournalRM.CongestionPolicy
- java.lang.Object
-
- com.tangosol.io.journal.FlashJournalRM.CongestionPolicy
-
- Direct Known Subclasses:
FlashJournalRM.FailCongestionPolicy,FlashJournalRM.WaitCongestionPolicy
- Enclosing class:
- FlashJournalRM
protected abstract static class FlashJournalRM.CongestionPolicy extends Object
A CongestionPolicy defines how to behave when the currently activeFlashJournalRM.JournalFilebecomes congested.The
onCongestion(JournalFile)method should only return control once the congestion has been alleviated or if it can not be rectified an unchecked exception should be thrown.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCongestionPolicy()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract voidonCongestion(FlashJournalRM.JournalFile jrnlfile)Invoked when it is determined the providedjrnlfilehas become congested.
-
-
-
Method Detail
-
onCongestion
protected abstract void onCongestion(FlashJournalRM.JournalFile jrnlfile)
Invoked when it is determined the providedjrnlfilehas become congested.- Parameters:
jrnlfile- the congestedFlashJournalRM.JournalFile
-
-