类 AbstractBrokerMessageHandler

    • 字段详细资料

    • 构造器详细资料

      • AbstractBrokerMessageHandler

        public AbstractBrokerMessageHandler​(SubscribableChannel inboundChannel,
                                            MessageChannel outboundChannel,
                                            SubscribableChannel brokerChannel)
        Constructor with no destination prefixes (matches all destinations).
        参数:
        inboundChannel - the channel for receiving messages from clients (e.g. WebSocket clients)
        outboundChannel - the channel for sending messages to clients (e.g. WebSocket clients)
        brokerChannel - the channel for the application to send messages to the broker
      • AbstractBrokerMessageHandler

        public AbstractBrokerMessageHandler​(SubscribableChannel inboundChannel,
                                            MessageChannel outboundChannel,
                                            SubscribableChannel brokerChannel,
                                            Collection<String> destinationPrefixes)
        Constructor with destination prefixes to match to destinations of messages.
        参数:
        inboundChannel - the channel for receiving messages from clients (e.g. WebSocket clients)
        outboundChannel - the channel for sending messages to clients (e.g. WebSocket clients)
        brokerChannel - the channel for the application to send messages to the broker
        destinationPrefixes - prefixes to use to filter out messages