Interface ResponseFuture<R extends Response>
-
- Type Parameters:
R
- The result type returned by this Future's get method
- All Superinterfaces:
Future<R>
- All Known Implementing Classes:
AddFuture
,BindFuture
,CompareFuture
,DeleteFuture
,ExtendedFuture
,ModifyDnFuture
,ModifyFuture
,MultipleResponseFuture
,SearchFuture
,UniqueResponseFuture
public interface ResponseFuture<R extends Response> extends Future<R>
A Future implementation used in LdapConnection operations.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel()
Cancel the FutureThrowable
getCause()
void
set(R response)
Set the associated Response in this Futurevoid
setCause(Throwable cause)
Associate a cause to the ResponseFuture
-
-
-
Method Detail
-
set
void set(R response) throws InterruptedException
Set the associated Response in this Future- Parameters:
response
- The response to add into the Future- Throws:
InterruptedException
- if the operation has been cancelled by client
-
setCause
void setCause(Throwable cause)
Associate a cause to the ResponseFuture- Parameters:
cause
- the cause to set
-
cancel
void cancel()
Cancel the Future
-
-