Class DisposableContextAwareMessage
- java.lang.Object
-
- de.codecentric.reedelk.platform.flow.DisposableContextAwareMessage
-
- All Implemented Interfaces:
de.codecentric.reedelk.runtime.api.message.Message,Serializable
public class DisposableContextAwareMessage extends Object implements de.codecentric.reedelk.runtime.api.message.Message
A message implementation which disposes the message only when the payload is consumed via the stream or data.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.codecentric.reedelk.runtime.api.message.MessageAttributesattributes()<T,StreamType,U extends de.codecentric.reedelk.runtime.api.message.content.TypedContent<T,StreamType>>
Ucontent()de.codecentric.reedelk.runtime.api.message.MessageAttributesgetAttributes()<T,StreamType,U extends de.codecentric.reedelk.runtime.api.message.content.TypedContent<T,StreamType>>
UgetContent()<T> Tpayload()booleanshouldDispose()
-
-
-
Method Detail
-
getContent
public <T,StreamType,U extends de.codecentric.reedelk.runtime.api.message.content.TypedContent<T,StreamType>> U getContent()
- Specified by:
getContentin interfacede.codecentric.reedelk.runtime.api.message.Message
-
content
public <T,StreamType,U extends de.codecentric.reedelk.runtime.api.message.content.TypedContent<T,StreamType>> U content()
- Specified by:
contentin interfacede.codecentric.reedelk.runtime.api.message.Message
-
payload
public <T> T payload()
- Specified by:
payloadin interfacede.codecentric.reedelk.runtime.api.message.Message
-
getAttributes
public de.codecentric.reedelk.runtime.api.message.MessageAttributes getAttributes()
- Specified by:
getAttributesin interfacede.codecentric.reedelk.runtime.api.message.Message
-
attributes
public de.codecentric.reedelk.runtime.api.message.MessageAttributes attributes()
- Specified by:
attributesin interfacede.codecentric.reedelk.runtime.api.message.Message
-
shouldDispose
public boolean shouldDispose()
-
-