public class SearchTimeLimitingMonitor extends Object implements org.apache.directory.api.ldap.model.cursor.ClosureMonitor
| Constructor and Description |
|---|
SearchTimeLimitingMonitor(long timeToLive,
TimeUnit unit)
Creates a new instance of SearchTimeLimitingMonitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkNotClosed() |
void |
close() |
void |
close(Exception cause) |
void |
close(String cause) |
Exception |
getCause() |
boolean |
isClosed() |
public SearchTimeLimitingMonitor(long timeToLive, TimeUnit unit)
timeToLive - the time before changing state to closed.unit - the time units for the timeToLive parameterTimeUnitpublic void checkNotClosed() throws org.apache.directory.api.ldap.model.cursor.CursorClosedException
checkNotClosed in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitororg.apache.directory.api.ldap.model.cursor.CursorClosedExceptionpublic void close()
close in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitorpublic void close(String cause)
close in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitorpublic void close(Exception cause)
close in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitorpublic Exception getCause()
getCause in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitorpublic boolean isClosed()
isClosed in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitorCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.