public class DelayInducingInterceptor extends BaseInterceptor
Interceptor
that fakes a specified amount of delay to each
search iteration so we can make sure search time limits are adhered to.directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager
Constructor and Description |
---|
DelayInducingInterceptor() |
Modifier and Type | Method and Description |
---|---|
EntryFilteringCursor |
search(SearchOperationContext searchContext)
Filters
Partition.search( SearchOperationContext ) call. |
void |
setDelayMillis(long delayMillis) |
add, bind, compare, delete, destroy, getName, getNextInterceptor, getPrincipal, getRootDse, hasEntry, init, lookup, modify, move, moveAndRename, next, next, next, next, next, next, next, next, next, next, next, next, next, rename, unbind
public DelayInducingInterceptor()
public EntryFilteringCursor search(SearchOperationContext searchContext) throws org.apache.directory.api.ldap.model.exception.LdapException
BaseInterceptor
Partition.search( SearchOperationContext )
call.search
in interface Interceptor
search
in class BaseInterceptor
searchContext
- The SearchOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Search operationpublic void setDelayMillis(long delayMillis)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.