|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Journal
The Journal interface represents data that is written as part of a stream of updates, with the ability to identify writes (and later read them) using a ticket system. The Journal does not support erasure, but does allow the Journal to discard data that has been written previously as long as it has been "released" via this interface.
Nested Class Summary | |
---|---|
static interface |
Journal.JournalConsumer An interface that represents the actions that a Journal may request of an object that uses the Journal. |
Method Summary | |
---|---|
Binary |
read(long lTicket) Using a ticket returned from a previous call to 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. |
long |
write(Binary bin) Write a Binary value to the Journal and return a ticket for it. |
Methods inherited from interface com.oracle.common.base.Disposable |
---|
dispose |
Method Detail |
---|
long write(Binary bin)
bin
- the Binary to write to the JournalBinary read(long lTicket)
write(com.tangosol.util.Binary)
, read the Binary value that was written to the Journal.lTicket
- a ticket returned from a previous call to write(com.tangosol.util.Binary)
java.lang.IllegalStateException
- may be thrown if the passed ticket had already been releasedint release(long lTicket)
lTicket
- a ticket returned from a previous call to write(com.tangosol.util.Binary)
java.lang.IllegalStateException
- may be thrown if the passed ticket had already been released
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |