PushEvent.CloseEvent<T>, PushEvent.DataEvent<T>, PushEvent.ErrorEvent<T>, PushEvent.EventType
Modifier and Type | Method and Description |
---|---|
T |
getData()
Return the data for this event.
|
PushEvent.EventType |
getType()
Get the type of this event.
|
boolean |
isTerminal()
Answer if no more events will follow after this event.
|
<X> PushEvent<X> |
nodata()
Convenience to cast a close/error event to another payload type.
|
close, data, error, getFailure
private final T data
DataEvent(T data)
public PushEvent.EventType getType()
PushEvent
public boolean isTerminal()
PushEvent
isTerminal
in class PushEvent<T>
false
if this is a data event, otherwise true
.public <X> PushEvent<X> nodata()
PushEvent