public interface FutureResponse extends Response
Response
which allows to populate it in an async fashion. It also allows to register listeners which will get notified once the
FutureResponse
is readyModifier and Type | Interface and Description |
---|---|
static interface |
FutureResponse.ResponseListener
Listener which will get notified once the
isReady() returns true |
DISCONNECT
Modifier and Type | Method and Description |
---|---|
void |
addListener(FutureResponse.ResponseListener listener)
Add a
FutureResponse.ResponseListener which will get notified once isReady() is true |
boolean |
isReady()
Return
true once the FutureResponse is ready and calling any of the get methods will not block any more. |
void |
removeListener(FutureResponse.ResponseListener listener)
Remote a
FutureResponse.ResponseListener |
getLines, getRetCode, isEndSession
void addListener(FutureResponse.ResponseListener listener)
FutureResponse.ResponseListener
which will get notified once isReady()
is truelistener
- void removeListener(FutureResponse.ResponseListener listener)
FutureResponse.ResponseListener
listener
- boolean isReady()
true
once the FutureResponse
is ready and calling any of the get methods will not block any more.Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.