Top Description Interfaces Classes
[default module]

Package org.springframework.messaging.support

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Provides implementations of org.springframework.messaging.Message along with a MessageBuilder and MessageHeaderAccessor for building and working with messages and message headers, as well as various org.springframework.messaging.MessageChannel implementations and channel interceptor support.

Interface Summary

Modifier and TypeInterface and Description
public interface
ChannelInterceptor

Interface for interceptors that are able to view and/or modify the Messages being sent-to and/or received-from a MessageChannel.

public interface
ExecutorChannelInterceptor

An extension of ChannelInterceptor with callbacks to intercept the asynchronous sending of a org.springframework.messaging.Message to a specific subscriber through an java.util.concurrent.Executor.

public interface
HeaderMapper<
type of the instance to and from which headers will be mapped
T
>

Generic strategy interface for mapping MessageHeaders to and from other types of objects.

public interface
InterceptableChannel

A MessageChannel that maintains a list ChannelInterceptors and allows interception of message sending.

public interface
MessageHandlingRunnable

Extension of the Runnable interface with methods to obtain the MessageHandler and Message to be handled.

public interface
MessageHeaderInitializer

Callback interface for initializing a MessageHeaderAccessor.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractHeaderMapper<
type of the instance to and from which headers will be mapped
T
>

A base HeaderMapper implementation.

public abstract class
AbstractMessageChannel

Abstract base class for MessageChannel implementations.

public abstract class
AbstractSubscribableChannel

Abstract base class for SubscribableChannel implementations.

public class
public class
ExecutorSubscribableChannel

A SubscribableChannel that sends messages to each of its subscribers.

public class
GenericMessage<
the payload type
T
>

An implementation of Message with a generic payload.

public class
IdTimestampMessageHeaderInitializer

A MessageHeaderInitializer to customize the strategy for ID and TIMESTAMP message header generation.

public class
ImmutableMessageChannelInterceptor

A simpler interceptor that calls MessageHeaderAccessor#setImmutable() on the headers of messages passed through the preSend method.

public class
MessageBuilder<
the message payload type
T
>

A builder for creating a GenericMessage (or ErrorMessage if the payload is of type Throwable).

public class
MessageHeaderAccessor

Wrapper around MessageHeaders that provides extra features such as strongly typed accessors for specific headers, the ability to leave headers in a Message mutable, and the option to suppress automatic generation of id and timestamp headers.

public class
NativeMessageHeaderAccessor

MessageHeaderAccessor subclass that supports storage and access of headers from an external source such as a message broker.