Class 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 Detail

      • getContent

        public <T,​StreamType,​U extends de.codecentric.reedelk.runtime.api.message.content.TypedContent<T,​StreamType>> U getContent()
        Specified by:
        getContent in interface de.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:
        content in interface de.codecentric.reedelk.runtime.api.message.Message
      • payload

        public <T> T payload()
        Specified by:
        payload in interface de.codecentric.reedelk.runtime.api.message.Message
      • getAttributes

        public de.codecentric.reedelk.runtime.api.message.MessageAttributes getAttributes()
        Specified by:
        getAttributes in interface de.codecentric.reedelk.runtime.api.message.Message
      • attributes

        public de.codecentric.reedelk.runtime.api.message.MessageAttributes attributes()
        Specified by:
        attributes in interface de.codecentric.reedelk.runtime.api.message.Message
      • shouldDispose

        public boolean shouldDispose()