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.ClosureMonitor
Exception
public void close()
close
in interface org.apache.directory.shared.ldap.cursor.ClosureMonitor
public void close(String cause)
close
in interface org.apache.directory.shared.ldap.cursor.ClosureMonitor
public void close(Exception cause)
close
in interface org.apache.directory.shared.ldap.cursor.ClosureMonitor
public Exception getCause()
getCause
in interface org.apache.directory.shared.ldap.cursor.ClosureMonitor
public boolean isClosed()
isClosed
in interface org.apache.directory.shared.ldap.cursor.ClosureMonitor
Copyright © 2003-2013 Apache Software Foundation. All Rights Reserved.