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.JournalFile
becomes 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 protected
CongestionPolicy()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract void
onCongestion(FlashJournalRM.JournalFile jrnlfile)
Invoked when it is determined the providedjrnlfile
has become congested.
-
-
-
Method Detail
-
onCongestion
protected abstract void onCongestion(FlashJournalRM.JournalFile jrnlfile)
Invoked when it is determined the providedjrnlfile
has become congested.- Parameters:
jrnlfile
- the congestedFlashJournalRM.JournalFile
-
-