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.
|
void |
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)
Indicats if all events have been received.
|
void |
setRepsonse(ManagerResponse response)
Sets the ManagerResponse received.
|
public ManagerResponse getResponse()
ResponseEvents
getResponse
in interface ResponseEvents
public Collection<ResponseEvent> getEvents()
ResponseEvents
getEvents
in interface ResponseEvents
public 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 void await(long timeout) throws InterruptedException
timeout
- - millisecondsInterruptedException
public void countDown()
Copyright © 2004–2020. All rights reserved.