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, wait
forEachRemaining
public 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 EventJournal
public Event nextEvent()
nextEvent
in interface EventIterator
public void skip(long skipNum)
skip
in interface RangeIterator
public long getSize()
getSize
in interface RangeIterator
public long getPosition()
getPosition
in interface RangeIterator
public void remove()
remove
in interface Iterator
UnsupportedOperationException
- always.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.