protected class BackupJournalRM.JournalImpl extends Object implements Journal
Journal.JournalConsumer| Constructor and Description | 
|---|
JournalImpl(Journal jrnlRam,
           Journal jrnlFlash)
Construct a Journal that writes to the RAM journal until the
 configured load factor is exceeded, a which point it will write to
 the flash journal instead. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
dispose()
Invoked when all resources owned by the implementer can safely be
 released. 
 | 
protected Journal.JournalConsumer | 
getConsumer()
Obtain the JournalConsumer (typically a JournalBinaryStore) instance
 associated with this JournalImpl. 
 | 
Binary | 
read(long lTicket)
Using a ticket returned from a previous call to
  
Journal.write(com.tangosol.util.Binary), read the Binary value that
 was written to the Journal. | 
int | 
release(long lTicket)
Notify the Journal that the value corresponding to the specified
 ticket is no longer needed. 
 | 
protected void | 
setConsumer(Journal.JournalConsumer consumer)
Specify the JournalConsumer (typically a JournalBinaryStore)
 instance that this JournalImpl was created for. 
 | 
String | 
toString() | 
long | 
write(Binary bin)
Write a Binary value to the Journal and return a ticket for it. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclosepublic JournalImpl(Journal jrnlRam, Journal jrnlFlash)
jrnlRam - the RAM journal to usejrnlFlash - the flash journal to usepublic long write(Binary bin)
public Binary read(long lTicket)
Journal.write(com.tangosol.util.Binary), read the Binary value that
 was written to the Journal.read in interface JournallTicket - a ticket returned from a previous call to
                 Journal.write(com.tangosol.util.Binary)public int release(long lTicket)
release in interface JournallTicket - a ticket returned from a previous call to
                 Journal.write(com.tangosol.util.Binary)public 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 Disposableprotected Journal.JournalConsumer getConsumer()
protected void setConsumer(Journal.JournalConsumer consumer)
consumer - a JournalConsumer