@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class GetChangelogBatchExtendedResult extends ExtendedResult
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
ChangelogBatchResult ::= SEQUENCE { resumeToken [0] OCTET STRING OPTIONAL, moreChangesAvailable [1] BOOLEAN, changesAlreadyPurged [2] BOOLEAN DEFAULT FALSE, additionalInfo [3] OCTET STRING OPTIONAL, estimatedChangesRemaining [4] INTEGER (0 .. MAXINT) OPTIONAL, ... }
GetChangelogBatchExtendedRequest
class
for an example demonstrating its use.NO_CONTROLS
Constructor and Description |
---|
GetChangelogBatchExtendedResult(ExtendedResult extendedResult,
int entryCount)
Creates a new get changelog batch extended result with the provided
information.
|
GetChangelogBatchExtendedResult(ExtendedResult extendedResult,
java.util.List<ChangelogEntryIntermediateResponse> entryList)
Creates a new get changelog batch extended result with the provided
information.
|
GetChangelogBatchExtendedResult(LDAPResult r)
Creates a new get changelog batch extended result with only the generic
LDAP result information and no extended value.
|
GetChangelogBatchExtendedResult(LDAPResult r,
int entryCount,
ASN1OctetString resumeToken,
boolean moreChangesAvailable,
boolean changesAlreadyPurged,
java.lang.String additionalInfo)
Creates a new get changelog batch extended result with the provided
information.
|
GetChangelogBatchExtendedResult(LDAPResult r,
int entryCount,
ASN1OctetString resumeToken,
boolean moreChangesAvailable,
int estimatedChangesRemaining,
boolean changesAlreadyPurged,
java.lang.String additionalInfo)
Creates a new get changelog batch extended result with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
changesAlreadyPurged()
Indicates whether the server indicated that it may have already purged one
or more changes after the starting point for the associated request and
therefore the results returned may be missing changes.
|
java.lang.String |
getAdditionalInfo()
Retrieves a message with additional information about the processing that
occurred, if available.
|
java.util.List<ChangelogEntryIntermediateResponse> |
getChangelogEntries()
Retrieves a list containing the entries that were returned by the server in
the course of processing the extended operation, if available.
|
int |
getEntryCount()
Retrieves the number of entries returned by the server in the course of
processing the extended operation.
|
int |
getEstimatedChangesRemaining()
Retrieves an estimate of the number of changes that may be immediately
available to be retrieved from the server, if available.
|
java.lang.String |
getExtendedResultName()
Retrieves the user-friendly name for the extended result, if available.
|
ASN1OctetString |
getResumeToken()
Retrieves a token that may be used to resume the process of retrieving
changes at the point after the last change received.
|
boolean |
moreChangesAvailable()
Indicates whether the server indicated that more changes may be immediately
available without waiting.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this extended response to the provided
buffer.
|
getOID, getValue, hasValue, toString
getDiagnosticMessage, getMatchedDN, getMessageID, getOperationType, getReferralURLs, getResponseControl, getResponseControls, getResultCode, getResultString, hasResponseControl, hasResponseControl
public GetChangelogBatchExtendedResult(@NotNull LDAPResult r)
r
- An LDAP result with general details of the response. It must
not be null
.public GetChangelogBatchExtendedResult(@NotNull LDAPResult r, int entryCount, @Nullable ASN1OctetString resumeToken, boolean moreChangesAvailable, boolean changesAlreadyPurged, @Nullable java.lang.String additionalInfo)
r
- An LDAP result with general details of the
response. It must not be null
.entryCount
- The number of entries returned. It may be
less than zero to indicate that the number of
entries is unknown.resumeToken
- A token which may be used to resume
retrieving changes at the point immediately
after the last change returned. It may be
null
only if this result represents
an error that prevented the operation from
being successfully processed.moreChangesAvailable
- Indicates whether there may be more changes
immediately available to retrieve from the
server.changesAlreadyPurged
- Indicates whether the server may have already
purged changes after the starting point
referenced by the associated request.additionalInfo
- A message with additional information about
the status of the processing. It may be
null
if no additional message is
available.public GetChangelogBatchExtendedResult(@NotNull LDAPResult r, int entryCount, @Nullable ASN1OctetString resumeToken, boolean moreChangesAvailable, int estimatedChangesRemaining, boolean changesAlreadyPurged, @Nullable java.lang.String additionalInfo)
r
- An LDAP result with general details of
the response. It must not be
null
.entryCount
- The number of entries returned. It may
be less than zero to indicate that the
number of entries is unknown.resumeToken
- A token which may be used to resume
retrieving changes at the point
immediately after the last change
returned. It may be null
only
if this result represents an error that
prevented the operation from being
successfully processed.moreChangesAvailable
- Indicates whether there may be more
changes immediately available to
retrieve from the server.estimatedChangesRemaining
- An estimate of the number of changes
remaining to be retrieved. A value less
than zero will be interpreted as
"unknown".changesAlreadyPurged
- Indicates whether the server may have
already purged changes after the
starting point referenced by the
associated request.additionalInfo
- A message with additional information
about the status of the processing. It
may be null
if no additional
message is available.public GetChangelogBatchExtendedResult(@NotNull ExtendedResult extendedResult, int entryCount) throws LDAPException
extendedResult
- A generic extended result to be parsed as a get
changelog batch extended result. It must not be
null
.entryCount
- The number of entries returned to the client. It
may be less than zero to indicate that the entry
count is unknown.LDAPException
- If the provided extended result cannot be parsed as
a get changelog batch result.public GetChangelogBatchExtendedResult(@NotNull ExtendedResult extendedResult, @NotNull java.util.List<ChangelogEntryIntermediateResponse> entryList) throws LDAPException
extendedResult
- A generic extended result to be parsed as a get
changelog batch extended result. It must not be
null
.entryList
- A list of the entries returned to the client. It
may be empty to indicate that no entries were
returned, but it must not be null
.LDAPException
- If the provided extended result cannot be parsed as
a get changelog batch result.@Nullable public ASN1OctetString getResumeToken()
null
if this result represents an error that prevented the
operation from being processed successfully.null
if none is available.public boolean moreChangesAvailable()
ExtendedResult.hasValue()
returns true
.true
if the server indicated that more changes may be
immediately available without waiting, or false
if not.public int getEstimatedChangesRemaining()
public boolean changesAlreadyPurged()
ExtendedResult.hasValue()
returns true
.true
if the server indicated that it may have already
purged one or more changes after the starting point, or
false
if not.@Nullable public java.lang.String getAdditionalInfo()
null
if none is available.public int getEntryCount()
@Nullable public java.util.List<ChangelogEntryIntermediateResponse> getChangelogEntries()
ChangelogEntryListener
was
used for the request, and it may not be available if an error was
encountered during processing.null
if an entry list is not available.@NotNull public java.lang.String getExtendedResultName()
null
will be returned.getExtendedResultName
in class ExtendedResult
null
if neither a user-friendly name nor a response OID
are available.public void toString(@NotNull java.lang.StringBuilder buffer)
toString
in interface LDAPResponse
toString
in class ExtendedResult
buffer
- The buffer to which a string representation of this
extended response will be appended.