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.
|
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)
Indicats if all events have been received.
|
void |
setRepsonse(ManagerResponse response)
Sets the ManagerResponse received.
|
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.Copyright © 2004–2016. All rights reserved.