| | |
| | | // The time that this client connection was established. |
| | | private long connectTime; |
| | | |
| | | // The idle time limit for this client connection. |
| | | private long idleTimeLimit; |
| | | |
| | | // The opaque information used for storing intermediate state |
| | | // information needed across multi-stage SASL binds. |
| | | private Object saslAuthState; |
| | |
| | | persistentSearches = new CopyOnWriteArrayList<PersistentSearch>(); |
| | | sizeLimit = DirectoryServer.getSizeLimit(); |
| | | timeLimit = DirectoryServer.getTimeLimit(); |
| | | idleTimeLimit = DirectoryServer.getIdleTimeLimit(); |
| | | lookthroughLimit = DirectoryServer.getLookthroughLimit(); |
| | | finalized = false; |
| | | privileges = new HashSet<Privilege>(); |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the maximum length of time in milliseconds that this |
| | | * client connection will be allowed to remain idle before it should |
| | | * be disconnected. |
| | | * |
| | | * @return The maximum length of time in milliseconds that this |
| | | * client connection will be allowed to remain idle before |
| | | * it should be disconnected. |
| | | */ |
| | | public final long getIdleTimeLimit() |
| | | { |
| | | return idleTimeLimit; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Specifies the maximum length of time in milliseconds that this |
| | | * client connection will be allowed to remain idle before it should |
| | | * be disconnected. |
| | | * |
| | | * @param idleTimeLimit The maximum length of time in milliseconds |
| | | * that this client connection will be |
| | | * allowed to remain idle before it should be |
| | | * disconnected. |
| | | */ |
| | | public void setIdleTimeLimit(long idleTimeLimit) |
| | | { |
| | | this.idleTimeLimit = idleTimeLimit; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the default maximum number of entries that should |
| | | * checked for matches during a search. |
| | | * |
| | |
| | | this.networkGroup = networkGroup; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the length of time in milliseconds that this client |
| | | * connection has been idle. |
| | | * <BR><BR> |
| | | * Note that the default implementation will always return zero. |
| | | * Subclasses associated with connection handlers should override |
| | | * this method if they wish to provided idle time limit |
| | | * functionality. |
| | | * |
| | | * @return The length of time in milliseconds that this client |
| | | * connection has been idle. |
| | | */ |
| | | public long getIdleTime() |
| | | { |
| | | return 0L; |
| | | } |
| | | } |
| | | |