public class EventJournalImpl extends Object implements EventJournal
EventJournalImpl implements the JCR 2.0 EventJournal.| Constructor and Description |
|---|
EventJournalImpl(EventFilter filter,
Journal journal,
String producerId,
SessionImpl session)
Creates a new event journal.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPosition() |
long |
getSize() |
boolean |
hasNext() |
Object |
next() |
Event |
nextEvent() |
void |
remove() |
void |
skip(long skipNum) |
void |
skipTo(long date) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic EventJournalImpl(EventFilter filter, Journal journal, String producerId, SessionImpl session)
filter - for filtering the events read from the journal.journal - the cluster journal.producerId - the producer id of the cluster node.session - target sessionpublic void skipTo(long date)
skipTo in interface EventJournalpublic Event nextEvent()
nextEvent in interface EventIteratorpublic void skip(long skipNum)
skip in interface RangeIteratorpublic long getSize()
getSize in interface RangeIteratorpublic long getPosition()
getPosition in interface RangeIteratorpublic void remove()
remove in interface IteratorUnsupportedOperationException - always.Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.