public class SearchTimeLimitingMonitor extends Object implements org.apache.directory.shared.ldap.cursor.ClosureMonitor
| Constructor and Description |
|---|
SearchTimeLimitingMonitor(long timeToLive,
TimeUnit unit)
Creates a new instance of SearchTimeLimitingMonitor.
|
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 Exception
checkNotClosed in interface org.apache.directory.shared.ldap.cursor.ClosureMonitorExceptionpublic void close()
close in interface org.apache.directory.shared.ldap.cursor.ClosureMonitorpublic void close(String cause)
close in interface org.apache.directory.shared.ldap.cursor.ClosureMonitorpublic void close(Exception cause)
close in interface org.apache.directory.shared.ldap.cursor.ClosureMonitorpublic Exception getCause()
getCause in interface org.apache.directory.shared.ldap.cursor.ClosureMonitorpublic boolean isClosed()
isClosed in interface org.apache.directory.shared.ldap.cursor.ClosureMonitorCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.