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() |
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 instancesizeLimit - The size limittimeLimit - The time limitpublic org.apache.directory.api.ldap.model.message.SearchRequest getSearchRequest()
public long getSizeLimit()
public int getCount()
public boolean isSizeLimitReached()
public void increment()
count - the count to setpublic 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 ObjectObject.toString()Copyright © 2021. All rights reserved.