程序包 org.springframework.messaging.support
Provides implementations of
Message along with a MessageBuilder and MessageHeaderAccessor for building and working with messages and message headers, as well as various MessageChannel implementations and channel interceptor support.接口概要 接口 说明 ChannelInterceptor Interface for interceptors that are able to view and/or modify theMessagesbeing sent-to and/or received-from aMessageChannel.ExecutorChannelInterceptor An extension ofChannelInterceptorwith callbacks to intercept the asynchronous sending of aMessageto a specific subscriber through anExecutor.HeaderMapper<T> Generic strategy interface for mappingMessageHeadersto and from other types of objects.InterceptableChannel AMessageChannelthat maintains a listChannelInterceptorsand allows interception of message sending.MessageHandlingRunnable Extension of theRunnableinterface with methods to obtain theMessageHandlerandMessageto be handled.MessageHeaderInitializer Callback interface for initializing aMessageHeaderAccessor.类概要 类 说明 AbstractHeaderMapper<T> A baseHeaderMapperimplementation.AbstractMessageChannel Abstract base class forMessageChannelimplementations.AbstractSubscribableChannel Abstract base class forSubscribableChannelimplementations.ChannelInterceptorAdapter 已过时。 as of 5.0.7ChannelInterceptorhas default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this no-op adapterErrorMessage AGenericMessagewith aThrowablepayload.ExecutorSubscribableChannel ASubscribableChannelthat sends messages to each of its subscribers.GenericMessage<T> An implementation ofMessagewith a generic payload.IdTimestampMessageHeaderInitializer AMessageHeaderInitializerto customize the strategy for ID and TIMESTAMP message header generation.ImmutableMessageChannelInterceptor A simpler interceptor that callsMessageHeaderAccessor.setImmutable()on the headers of messages passed through the preSend method.MessageBuilder<T> MessageHeaderAccessor Wrapper aroundMessageHeadersthat provides extra features such as strongly typed accessors for specific headers, the ability to leave headers in aMessagemutable, and the option to suppress automatic generation ofidandtimesteampheaders.NativeMessageHeaderAccessor MessageHeaderAccessorsub-class that supports storage and access of headers from an external source such as a message broker.