org.apache.directory.server.ldap.handlers
Class SearchTimeLimitingMonitor
java.lang.Object
org.apache.directory.server.ldap.handlers.SearchTimeLimitingMonitor
- All Implemented Interfaces:
- org.apache.directory.shared.ldap.model.cursor.ClosureMonitor
public class SearchTimeLimitingMonitor
- extends Object
- implements org.apache.directory.shared.ldap.model.cursor.ClosureMonitor
A ClosureMonitor implementation which takes into account a time limit.
- Author:
- Apache Directory Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchTimeLimitingMonitor
public SearchTimeLimitingMonitor(long timeToLive,
TimeUnit unit)
- Creates a new instance of SearchTimeLimitingMonitor.
- Parameters:
timeToLive - the time before changing state to closed.unit - the time units for the timeToLive parameter- See Also:
TimeUnit
checkNotClosed
public void checkNotClosed()
throws Exception
- Specified by:
checkNotClosed in interface org.apache.directory.shared.ldap.model.cursor.ClosureMonitor
- Throws:
Exception
close
public void close()
- Specified by:
close in interface org.apache.directory.shared.ldap.model.cursor.ClosureMonitor
close
public void close(String cause)
- Specified by:
close in interface org.apache.directory.shared.ldap.model.cursor.ClosureMonitor
close
public void close(Exception cause)
- Specified by:
close in interface org.apache.directory.shared.ldap.model.cursor.ClosureMonitor
getCause
public Exception getCause()
- Specified by:
getCause in interface org.apache.directory.shared.ldap.model.cursor.ClosureMonitor
isClosed
public boolean isClosed()
- Specified by:
isClosed in interface org.apache.directory.shared.ldap.model.cursor.ClosureMonitor
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.