public class ReplicaEventMessage extends Object
Constructor and Description |
---|
ReplicaEventMessage(org.apache.directory.api.ldap.model.message.controls.ChangeType changeType,
org.apache.directory.api.ldap.model.entry.Entry entry)
Create a new ReplicaEvent instance for a Add/Delete+Modify operation
|
Modifier and Type | Method and Description |
---|---|
org.apache.directory.api.ldap.model.message.controls.ChangeType |
getChangeType() |
org.apache.directory.api.ldap.model.entry.Entry |
getEntry() |
boolean |
isEventOlderThan(String csn)
checks if the event's CSN is older than the given CSN
|
public ReplicaEventMessage(org.apache.directory.api.ldap.model.message.controls.ChangeType changeType, org.apache.directory.api.ldap.model.entry.Entry entry)
changeType
- The change typeentry
- The entrypublic org.apache.directory.api.ldap.model.message.controls.ChangeType getChangeType()
public org.apache.directory.api.ldap.model.entry.Entry getEntry()
public boolean isEventOlderThan(String csn) throws org.apache.directory.api.ldap.model.exception.LdapException
csn
- the CSNorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any extreme conditions like a null entry or missing entryCSN attribute.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.