protected class RamJournalRM.FlashConsumer extends Object implements Journal.JournalConsumer
| Modifier | Constructor and Description | 
|---|---|
protected  | 
FlashConsumer()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
dedupe(byte[][] aab)
This method may be invoked by the Journal implementation to request
 that any immutable byte arrays managed by the consumer be
 de-duplicated. 
 | 
void | 
dispose()
Invoked when all resources owned by the implementer can safely be
 released. 
 | 
void | 
evacuate(long lTicketMask,
        long lTicketValue)
This method may be invoked by the Journal implementation to request
 that the consumer evacuate a particular journal file. 
 | 
String | 
getDescription()
Format a String description of the Consumer. 
 | 
Journal | 
getJournal()
Obtain the flash Journal instance. 
 | 
void | 
notifyRamJournalDisposed()
Notifies the JournalConsumer that the RamJournalRM that uses it has
 been disposed. 
 | 
void | 
setJournal(Journal jrnl)
Provide the FlashConsumer with a Journal instance that provides
 flash storage. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic void evacuate(long lTicketMask,
                     long lTicketValue)
evacuate in interface Journal.JournalConsumerlTicketMask - indicates which bits of the tickets to checklTicketValue - indicates what bit pattern needs to be matched
                      on the tickets in order to select them for
                      evacuationpublic void dedupe(byte[][] aab)
dedupe in interface Journal.JournalConsumeraab - an array of byte[] objects for intern-ing byte[]
             referencespublic String getDescription()
getDescription in interface Journal.JournalConsumerpublic void dispose()
Once disposed of the object should no longer be considered to be usable.
Note the Disposable interface is compatible with try-with-resources which will automatically invoke this method.
dispose in interface Disposablepublic Journal getJournal()
public void setJournal(Journal jrnl)
jrnl - a Journal from a FlashJournalRMpublic void notifyRamJournalDisposed()