public class SearchRequestContainer extends Object
Constructor and Description |
---|
SearchRequestContainer(org.apache.directory.api.ldap.model.message.SearchRequest searchRequest,
org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> cursor)
Create an instance of the container with the SearchRequest and its limit.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> |
getCursor() |
long |
getInitialTime() |
org.apache.directory.api.ldap.model.message.SearchRequest |
getSearchRequest() |
long |
getSizeLimit() |
int |
getTimeLimit() |
void |
increment()
Increment the count
|
boolean |
isSizeLimitReached()
Check the size limit
|
boolean |
isTimeLimitReached()
Check if we have reached the time limit
|
String |
toString() |
public SearchRequestContainer(org.apache.directory.api.ldap.model.message.SearchRequest searchRequest, org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> cursor)
searchRequest
- The SearchRequest instancecursor
- The cursor to processpublic org.apache.directory.api.ldap.model.message.SearchRequest getSearchRequest()
public long getSizeLimit()
public int getCount()
public boolean isSizeLimitReached()
public void increment()
public int getTimeLimit()
public boolean isTimeLimitReached()
public long getInitialTime()
public org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> getCursor()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.