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 parameterTimeUnit
public void checkNotClosed() throws org.apache.directory.api.ldap.model.cursor.CursorClosedException
checkNotClosed
in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitor
org.apache.directory.api.ldap.model.cursor.CursorClosedException
public void close()
close
in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitor
public void close(String cause)
close
in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitor
public void close(Exception cause)
close
in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitor
public Exception getCause()
getCause
in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitor
public boolean isClosed()
isClosed
in interface org.apache.directory.api.ldap.model.cursor.ClosureMonitor
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.