Class RamJournalRM.JournalImpl
java.lang.Object
com.tangosol.io.journal.AbstractJournalRM.JournalImpl
com.tangosol.io.journal.RamJournalRM.JournalImpl
- All Implemented Interfaces:
Disposable,Journal,AutoCloseable
- Enclosing class:
RamJournalRM
A Journal implementation managed by this Journal Resource Manager.
- Since:
- Coherence 3.7
- Author:
- cp/cf 2010-06-24
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.io.journal.Journal
Journal.JournalConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RuntimeExceptionReturn a RuntimeException indicating the Journal is out of capacity.read(long lTicket) Using a ticket returned from a previous call toJournal.write(com.tangosol.util.Binary), read the Binary value that was written to the Journal.intrelease(long lTicket) Notify the Journal that the value corresponding to the specified ticket is no longer needed.protected longwriteOverflow(Binary bin) Handle the case in which the write overflows the capacity of the journal.Methods inherited from class com.tangosol.io.journal.AbstractJournalRM.JournalImpl
dispose, getConsumer, setConsumer, toString, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.coherence.common.base.Disposable
close
-
Constructor Details
-
JournalImpl
protected JournalImpl()
-
-
Method Details
-
read
Using a ticket returned from a previous call toJournal.write(com.tangosol.util.Binary), read the Binary value that was written to the Journal.- Specified by:
readin interfaceJournal- Overrides:
readin classAbstractJournalRM.JournalImpl- Parameters:
lTicket- a ticket returned from a previous call toJournal.write(com.tangosol.util.Binary)- Returns:
- the Binary value that was previously written
-
release
public int release(long lTicket) Notify the Journal that the value corresponding to the specified ticket is no longer needed.- Specified by:
releasein interfaceJournal- Overrides:
releasein classAbstractJournalRM.JournalImpl- Parameters:
lTicket- a ticket returned from a previous call toJournal.write(com.tangosol.util.Binary)- Returns:
- the number of bytes released
-
writeOverflow
Handle the case in which the write overflows the capacity of the journal.- Overrides:
writeOverflowin classAbstractJournalRM.JournalImpl- Parameters:
bin- the Binary to write- Returns:
- a ticket
-
instantiateJournalFullException
Return a RuntimeException indicating the Journal is out of capacity.- Overrides:
instantiateJournalFullExceptionin classAbstractJournalRM.JournalImpl- Returns:
- a RuntimeException indicating the Journal is out of capacity
-