public class ReplicaJournalCursor extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>
| Constructor and Description |
|---|
ReplicaJournalCursor(org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable<String,ReplicaEventMessage> journal,
String consumerCsn)
Creates a cursor on top of the given journal
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(ReplicaEventMessage arg0) |
void |
afterLast() |
boolean |
available() |
void |
before(ReplicaEventMessage arg0) |
void |
beforeFirst() |
void |
close() |
void |
close(Exception cause) |
protected void |
delete()
delete the current message
used for internal log cleanup ONLY
|
boolean |
first() |
ReplicaEventMessage |
get() |
Iterator<ReplicaEventMessage> |
iterator() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
protected void |
skipQualifyingWhileFetching()
sets the flag to skip CSN based checking while traversing
used for internal log cleanup ONLY
|
public ReplicaJournalCursor(org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable<String,ReplicaEventMessage> journal, String consumerCsn) throws Exception
journal - the log journalconsumerCsn - the consumer's CSN taken from cookieExceptionpublic void after(ReplicaEventMessage arg0) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void afterLast()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean available()
public void before(ReplicaEventMessage arg0) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean first()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic ReplicaEventMessage get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean last()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean next()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean previous()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void close()
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<ReplicaEventMessage>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>public void close(Exception cause)
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<ReplicaEventMessage>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>protected void skipQualifyingWhileFetching()
protected void delete()
public Iterator<ReplicaEventMessage> iterator()
iterator in interface Iterable<ReplicaEventMessage>iterator in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<ReplicaEventMessage>Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.