Package org.osgi.util.pushstream
Class PushEvent.DataEvent<T>
java.lang.Object
org.osgi.util.pushstream.PushEvent<T>
org.osgi.util.pushstream.PushEvent.DataEvent<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.osgi.util.pushstream.PushEvent
PushEvent.CloseEvent<T>, PushEvent.DataEvent<T>, PushEvent.ErrorEvent<T>, PushEvent.EventType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.osgi.util.pushstream.PushEvent
close, data, error, getFailure
-
Field Details
-
data
-
-
Constructor Details
-
DataEvent
DataEvent(T data)
-
-
Method Details
-
getData
Description copied from class:PushEvent
Return the data for this event. -
getType
Description copied from class:PushEvent
Get the type of this event. -
isTerminal
public boolean isTerminal()Description copied from class:PushEvent
Answer if no more events will follow after this event.- Overrides:
isTerminal
in classPushEvent<T>
- Returns:
false
if this is a data event, otherwisetrue
.
-
nodata
Description copied from class:PushEvent
Convenience to cast a close/error event to another payload type. Since the payload type is not needed for these events this is harmless. This therefore allows you to forward the close/error event downstream without creating anew event.
-