public class ResponseEventsImpl extends Object implements ResponseEvents
| Constructor and Description |
|---|
ResponseEventsImpl()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(ResponseEvent event)
Adds a ResponseEvent that has been received.
|
boolean |
await(long timeout) |
void |
countDown() |
Collection<ResponseEvent> |
getEvents()
Returns a Collection of ManagerEvents that have been received including
the last one that indicates completion.
|
ManagerResponse |
getResponse()
Returns the response received.
|
boolean |
isComplete() |
void |
setComplete(boolean complete)
Indicates if all events have been received.
|
void |
setRepsonse(ManagerResponse response)
Sets the ManagerResponse received.
|
String |
toString() |
public ManagerResponse getResponse()
ResponseEventsgetResponse in interface ResponseEventspublic Collection<ResponseEvent> getEvents()
ResponseEventsgetEvents in interface ResponseEventspublic boolean isComplete()
public void setRepsonse(ManagerResponse response)
response - the ManagerResponse received.public void addEvent(ResponseEvent event)
event - the ResponseEvent that has been received.public void setComplete(boolean complete)
complete - true if all events have been received,
false otherwise.public boolean await(long timeout)
throws InterruptedException
timeout - - millisecondsInterruptedExceptionpublic void countDown()
Copyright © 2004–2022. All rights reserved.