Class EventJournalImpl
- java.lang.Object
-
- org.apache.jackrabbit.core.observation.EventJournalImpl
-
- All Implemented Interfaces:
Iterator,EventIterator,EventJournal,RangeIterator
public class EventJournalImpl extends Object implements EventJournal
EventJournalImplimplements the JCR 2.0EventJournal.
-
-
Constructor Summary
Constructors Constructor Description EventJournalImpl(EventFilter filter, Journal journal, String producerId, SessionImpl session)Creates a new event journal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetPosition()longgetSize()booleanhasNext()Objectnext()EventnextEvent()voidremove()voidskip(long skipNum)voidskipTo(long date)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
EventJournalImpl
public EventJournalImpl(EventFilter filter, Journal journal, String producerId, SessionImpl session)
Creates a new event journal.- Parameters:
filter- for filtering the events read from the journal.journal- the cluster journal.producerId- the producer id of the cluster node.session- target session
-
-
Method Detail
-
skipTo
public void skipTo(long date)
- Specified by:
skipToin interfaceEventJournal
-
nextEvent
public Event nextEvent()
- Specified by:
nextEventin interfaceEventIterator
-
skip
public void skip(long skipNum)
- Specified by:
skipin interfaceRangeIterator
-
getSize
public long getSize()
- Specified by:
getSizein interfaceRangeIterator- Returns:
- always -1.
-
getPosition
public long getPosition()
- Specified by:
getPositionin interfaceRangeIterator
-
remove
public void remove()
- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException- always.
-
-