接口的使用
org.springframework.messaging.SubscribableChannel
使用SubscribableChannel的程序包 程序包 说明 org.springframework.messaging.simp.annotation.support Support classes for handling messages from simple messaging protocols (like STOMP).org.springframework.messaging.simp.broker Provides a "simple" message broker implementation along with an abstract base class and other supporting types such as a registry for subscriptions.org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.messaging.simp.stomp Generic support for simple messaging protocols (like STOMP).org.springframework.messaging.simp.user Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.org.springframework.messaging.support Provides implementations ofMessagealong with a MessageBuilder and MessageHeaderAccessor for building and working with messages and message headers, as well as variousMessageChannelimplementations and channel interceptor support.org.springframework.web.socket.messaging WebSocket integration for Spring's messaging module.org.springframework.messaging.simp.annotation.support中SubscribableChannel的使用
参数类型为SubscribableChannel的org.springframework.messaging.simp.annotation.support中的构造器 构造器 说明 SimpAnnotationMethodMessageHandler(SubscribableChannel clientInboundChannel, MessageChannel clientOutboundChannel, SimpMessageSendingOperations brokerTemplate)Create an instance of SimpAnnotationMethodMessageHandler with the given message channels and broker messaging template.org.springframework.messaging.simp.broker中SubscribableChannel的使用
返回SubscribableChannel的org.springframework.messaging.simp.broker中的方法 修饰符和类型 方法 说明 SubscribableChannelAbstractBrokerMessageHandler. getBrokerChannel()SubscribableChannelAbstractBrokerMessageHandler. getClientInboundChannel()参数类型为SubscribableChannel的org.springframework.messaging.simp.broker中的构造器 构造器 说明 AbstractBrokerMessageHandler(SubscribableChannel inboundChannel, MessageChannel outboundChannel, SubscribableChannel brokerChannel)Constructor with no destination prefixes (matches all destinations).AbstractBrokerMessageHandler(SubscribableChannel inboundChannel, MessageChannel outboundChannel, SubscribableChannel brokerChannel, Collection<String> destinationPrefixes)Constructor with destination prefixes to match to destinations of messages.SimpleBrokerMessageHandler(SubscribableChannel clientInboundChannel, MessageChannel clientOutboundChannel, SubscribableChannel brokerChannel, Collection<String> destinationPrefixes)Create a SimpleBrokerMessageHandler instance with the given message channels and destination prefixes.org.springframework.messaging.simp.config中SubscribableChannel的使用
返回SubscribableChannel的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 protected SubscribableChannelAbstractBrokerRegistration. getClientInboundChannel()参数类型为SubscribableChannel的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 protected abstract AbstractBrokerMessageHandlerAbstractBrokerRegistration. getMessageHandler(SubscribableChannel brokerChannel)protected SimpleBrokerMessageHandlerSimpleBrokerRegistration. getMessageHandler(SubscribableChannel brokerChannel)protected StompBrokerRelayMessageHandlerStompBrokerRelayRegistration. getMessageHandler(SubscribableChannel brokerChannel)protected SimpleBrokerMessageHandlerMessageBrokerRegistry. getSimpleBroker(SubscribableChannel brokerChannel)protected StompBrokerRelayMessageHandlerMessageBrokerRegistry. getStompBrokerRelay(SubscribableChannel brokerChannel)参数类型为SubscribableChannel的org.springframework.messaging.simp.config中的构造器 构造器 说明 AbstractBrokerRegistration(SubscribableChannel clientInboundChannel, MessageChannel clientOutboundChannel, String[] destinationPrefixes)MessageBrokerRegistry(SubscribableChannel clientInboundChannel, MessageChannel clientOutboundChannel)SimpleBrokerRegistration(SubscribableChannel inChannel, MessageChannel outChannel, String[] prefixes)StompBrokerRelayRegistration(SubscribableChannel clientInboundChannel, MessageChannel clientOutboundChannel, String[] destinationPrefixes)org.springframework.messaging.simp.stomp中SubscribableChannel的使用
参数类型为SubscribableChannel的org.springframework.messaging.simp.stomp中的构造器 构造器 说明 StompBrokerRelayMessageHandler(SubscribableChannel inboundChannel, MessageChannel outboundChannel, SubscribableChannel brokerChannel, Collection<String> destinationPrefixes)Create a StompBrokerRelayMessageHandler instance with the given message channels and destination prefixes.org.springframework.messaging.simp.user中SubscribableChannel的使用
参数类型为SubscribableChannel的org.springframework.messaging.simp.user中的构造器 构造器 说明 UserDestinationMessageHandler(SubscribableChannel clientInboundChannel, SubscribableChannel brokerChannel, UserDestinationResolver resolver)Create an instance with the given client and broker channels subscribing to handle messages from each and then sending any resolved messages to the broker channel.org.springframework.messaging.support中SubscribableChannel的使用
实现SubscribableChannel的org.springframework.messaging.support中的类 修饰符和类型 类 说明 classAbstractSubscribableChannelAbstract base class forSubscribableChannelimplementations.classExecutorSubscribableChannelASubscribableChannelthat sends messages to each of its subscribers.org.springframework.web.socket.messaging中SubscribableChannel的使用
参数类型为SubscribableChannel的org.springframework.web.socket.messaging中的构造器 构造器 说明 SubProtocolWebSocketHandler(MessageChannel clientInboundChannel, SubscribableChannel clientOutboundChannel)Create a newSubProtocolWebSocketHandlerfor the given inbound and outbound channels.WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel, MessageChannel clientOutChannel, SimpMessageSendingOperations brokerTemplate)