跳过导航链接
A B C F G H I L M O P R S T U W 

A

afterConnectionClosed(WebSocketSession, CloseStatus) - 类 中的方法io.xiaper.mq.webscoket.WebSocketMessageHandler
 
afterConnectionEstablished(WebSocketSession) - 类 中的方法io.xiaper.mq.webscoket.WebSocketMessageHandler
 
afterHandshake(ServerHttpRequest, ServerHttpResponse, WebSocketHandler, Exception) - 类 中的方法io.xiaper.mq.stomp.StompHandshakeInterceptor
 

B

beforeHandshake(ServerHttpRequest, ServerHttpResponse, WebSocketHandler, Map<String, Object>) - 类 中的方法io.xiaper.mq.stomp.StompHandshakeInterceptor
 
bindingTopicCompanyQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicContactQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicGroupQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicMqttLastWillProtobufQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicMqttLastWillQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicMqttMessageQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicMqttProtobufMessageQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicMqttStatusProtobufQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicMqttStatusQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicPlatformQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicThreadQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicUserQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
bindingTopicWorkGroupQueue(TopicExchange, Queue) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 

C

companyQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听公司消息
configureMessageBroker(MessageBrokerRegistry) - 类 中的方法io.xiaper.mq.stomp.StompConfig
SpringBoot官方说明 Using WebSocket to build an interactive web application: https://spring.io/guides/gs/messaging-stomp-websocket/ https://www.sitepoint.com/implementing-spring-websocket-server-and-client/ 图片说明: https://docs.spring.io/spring/docs/current/spring-framework-reference/images/message-flow-broker-relay.png /topic/**: 广播 /queue/**: 点对点 config.enableSimpleBroker("/topic","/queue"); 说明:clientLogin/clientPasscode/systemLogin/systemPasscode 必须填写 STOMP messages whose destination header begins with /app are routed to @MessageMapping methods in @Controller classes. 1.
configureRabbitListeners(RabbitListenerEndpointRegistrar) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
configureWebSocketTransport(WebSocketTransportRegistration) - 类 中的方法io.xiaper.mq.stomp.StompConfig
用于优化 clientOutboundChannel 性能
consumerJackson2MessageConverter() - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
contactQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听同事消息

F

fromMessage(Message) - 类 中的方法io.xiaper.mq.converter.ProtobufMessageConverter
 

G

groupQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听群组消息

H

handleException(Throwable) - 类 中的方法io.xiaper.mq.stomp.StompController
异常信息推送 broadcast=false 说明: If the user has more than one session, by default all of the sessions subscribed to the given destination are targeted.
handleTextMessage(WebSocketSession, TextMessage) - 类 中的方法io.xiaper.mq.webscoket.WebSocketMessageHandler
 

I

io.xiaper.mq - 程序包 io.xiaper.mq
 
io.xiaper.mq.config - 程序包 io.xiaper.mq.config
 
io.xiaper.mq.converter - 程序包 io.xiaper.mq.converter
 
io.xiaper.mq.stomp - 程序包 io.xiaper.mq.stomp
 
io.xiaper.mq.stomp.listener - 程序包 io.xiaper.mq.stomp.listener
 
io.xiaper.mq.webscoket - 程序包 io.xiaper.mq.webscoket
 

L

logger - 类 中的变量io.xiaper.mq.stomp.StompChannelInterceptor
 
logger - 类 中的变量io.xiaper.mq.stomp.StompHandshakeInterceptor
 

M

main(String[]) - 类 中的静态方法io.xiaper.mq.RabbitMqRouterApplication
 
message(Principal, Message) - 类 中的方法io.xiaper.mq.stomp.StompController
一对一聊天 https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-stomp-handle-annotations
message(Principal, String, String, Message) - 类 中的方法io.xiaper.mq.stomp.StompController
会话消息 stomp和mqtt客户端均能够收到消息: stomp端需要订阅,格式如:/topic/thread.123456 , 注意添加前缀 '/topic/' stomp服务器发送消息: String stompDestination = "/topic/"+ messageSessionType + "." + tid; mqtt端需要订阅,格式如:thread/123456, 注意无前缀 '/topic/' ,同时 '.'
message(Principal, String, String) - 类 中的方法io.xiaper.mq.stomp.StompController
protobuf 消息体:
messageHandlerMethodFactory() - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
mqttLastWillProtobufQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听mqtt客户端的last will遗嘱: protobuf
mqttLastWillQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听mqtt客户端的last will遗嘱
mqttMessageProtobufQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听来自mqtt客户端的消息: protobuf
mqttMessageQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听来自mqtt客户端的消息
mqttStatusProtobufQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听mqtt客户端的状态: protobuf
mqttStatusQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听mqtt客户端的状态

O

onApplicationEvent(BrokerAvailabilityEvent) - 类 中的方法io.xiaper.mq.stomp.listener.StompBrokerAvailabilityListener
来自ApplicationListener的接口 监听 "system" connection to the broker is lost and re-established TODO: SimpMessagingTemplate should subscribe to this event and avoid sending messages at times when the broker is not available.
onApplicationEvent(SessionConnectedEvent) - 类 中的方法io.xiaper.mq.stomp.listener.StompConnectedListener
监听来自stomp,也即web端的连接事件 TODO: 如果是客服账号,则根据所在工作组type添加订阅, pubSub, roundRobin 等 每个登录客户端一个queue queue = username +'
onApplicationEvent(SessionConnectEvent) - 类 中的方法io.xiaper.mq.stomp.listener.StompConnectListener
 
onApplicationEvent(SessionDisconnectEvent) - 类 中的方法io.xiaper.mq.stomp.listener.StompDisconnectListener
监听来自stomp,也即web端的连接断开信息 注意:一个session可能会重复(多次)收到此断开消息:In some cases, this event is published more than once per session
onApplicationEvent(SessionSubscribeEvent) - 类 中的方法io.xiaper.mq.stomp.listener.StompSubscribeListener
监听来自stomp,也即web端的订阅事件
onApplicationEvent(SessionUnsubscribeEvent) - 类 中的方法io.xiaper.mq.stomp.listener.StompUnsubscribeListener
监听来自stomp,也即web端的取消订阅事件

P

platformQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听平台公告
preSend(Message<?>, MessageChannel) - 类 中的方法io.xiaper.mq.stomp.StompChannelInterceptor
 
producerJackson2MessageConverter() - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
ProtobufMessageConverter - io.xiaper.mq.converter中的类
 
ProtobufMessageConverter() - 类 的构造器io.xiaper.mq.converter.ProtobufMessageConverter
 

R

RabbitConfig - io.xiaper.mq.config中的类
Part 1: RabbitMQ Best Practice https://www.cloudamqp.com/blog/2017-12-29-part1-rabbitmq-best-practice.html 教程: https://spring.io/guides/gs/messaging-rabbitmq/ http://www.rabbitmq.com/tutorials/tutorial-five-spring-amqp.html 发送 转换 JSON 消息 Exchange JSON messages with Spring Boot AMQP and RabbitMQ: https://thepracticaldeveloper.com/2016/10/23/produce-and-consume-json-messages-with-spring-boot-amqp/ https://github.com/mechero/spring-boot-amqp-messaging TODO: 如果发送消息对方不在线,则将消息存储到MySQL之后,RabbitMQ直接丢弃掉消息, TODO: 也即:清理掉RabbitMQ后台Overview页面Queued Messages, 使其总数为0
RabbitConfig() - 类 的构造器io.xiaper.mq.config.RabbitConfig
 
RabbitMessageListener - io.xiaper.mq.config中的类
 
RabbitMessageListener() - 类 的构造器io.xiaper.mq.config.RabbitMessageListener
 
RabbitMqRouterApplication - io.xiaper.mq中的类
 
RabbitMqRouterApplication() - 类 的构造器io.xiaper.mq.RabbitMqRouterApplication
 
rabbitTemplate(ConnectionFactory) - 类 中的方法io.xiaper.mq.config.RabbitConfig
 
receiveCompanyMessage(Message) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
监听来自集群广播的公司的消息 包括:客服在线状态、公司公告
receiveContactMessage(Message) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
同事消息队列
receiveGroupMessage(Message) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
群组消息队列
receiveMqttLastWill(String) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
mqtt客户端异常掉线监听 FIXME: 对应来自mqtt客户端的消息Jackson2JsonMessageConverter 报错:Could not convert incoming message with content-type [null], 'json' keyword missing { 'username': '201808231040571', 'client': 'ios', 'status': 'disconnect' }
receiveMqttMessage(String) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
监听来自rabbitmq广播的mqtt客户端发送的消息 FIXME: 对应来自mqtt客户端的消息Jackson2JsonMessageConverter, 报错:Could not convert incoming message with content-type [null], 'json' keyword missing {"client":"android","content":"3","localId":"8a81c9d6-becb-420e-a2b2-f68e1331c891", "sessionType":"thread","status":"sending", "tid":"201812071713051","type":"text","username":"201812051425471"} org.json.JSONObject messageObject = new org.json.JSONObject(mqttMessage);
receiveMqttMessageProtobuf(String) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
protobuf 消息
receiveMqttStatus(String) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
监听来自rabbitmq广播的mqtt客户端的在线状态 FIXME: 对应来自mqtt客户端的消息Jackson2JsonMessageConverter 报错:Could not convert incoming message with content-type [null], 'json' keyword missing
receivePlatformMessage(Message) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
监听来自集群广播的全平台的消息
receiveThreadMessage(Message) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
监听Thread会话消息
receiveUserMessage(Message) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
监听来自集群广播的发送给某用户的消息
receiveWorkGroupMessage(Message) - 类 中的方法io.xiaper.mq.config.RabbitMessageListener
监听来自集群广播的工作组消息
registerStompEndpoints(StompEndpointRegistry) - 类 中的方法io.xiaper.mq.stomp.StompConfig
setAllowedOrigins 解决跨域问题 /stomp is the HTTP URL for the endpoint to which a WebSocket (or SockJS) client needs to connect for the WebSocket handshake.
registerWebSocketHandlers(WebSocketHandlerRegistry) - 类 中的方法io.xiaper.mq.webscoket.WebSocketConfig
 

S

sameOriginDisabled() - 类 中的方法io.xiaper.mq.stomp.StompSecurityConfig
 
speak(String, String) - 类 中的方法io.xiaper.mq.stomp.StompController
点对点推送
StompBrokerAvailabilityListener - io.xiaper.mq.stomp.listener中的类
indicates when the broker becomes available/unavailable https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-stomp-appplication-context-events
StompBrokerAvailabilityListener() - 类 的构造器io.xiaper.mq.stomp.listener.StompBrokerAvailabilityListener
 
StompChannelInterceptor - io.xiaper.mq.stomp中的类
 
StompChannelInterceptor() - 类 的构造器io.xiaper.mq.stomp.StompChannelInterceptor
 
StompConfig - io.xiaper.mq.stomp中的类
https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-stomp FIXME: Failed to write SockJsFrame content='a["\n"]'; nested exception is org.eclipse.jetty.io.EofException FIXME: Caused by: org.eclipse.jetty.io.EofException: null / Caused by: java.io.IOException: Broken pipe
StompConfig() - 类 的构造器io.xiaper.mq.stomp.StompConfig
 
StompConnectedListener - io.xiaper.mq.stomp.listener中的类
published shortly after a SessionConnectEvent when the broker has sent a STOMP CONNECTED frame in response to the CONNECT https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-stomp-appplication-context-events
StompConnectedListener() - 类 的构造器io.xiaper.mq.stomp.listener.StompConnectedListener
 
StompConnectListener - io.xiaper.mq.stomp.listener中的类
客户端新连接建立通知 published when a new STOMP CONNECT is received indicating the start of a new client session.
StompConnectListener() - 类 的构造器io.xiaper.mq.stomp.listener.StompConnectListener
 
StompController - io.xiaper.mq.stomp中的类
https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-stomp
StompController() - 类 的构造器io.xiaper.mq.stomp.StompController
 
StompDisconnectListener - io.xiaper.mq.stomp.listener中的类
published when a STOMP session ends.
StompDisconnectListener() - 类 的构造器io.xiaper.mq.stomp.listener.StompDisconnectListener
 
StompHandshakeInterceptor - io.xiaper.mq.stomp中的类
 
StompHandshakeInterceptor() - 类 的构造器io.xiaper.mq.stomp.StompHandshakeInterceptor
 
StompSecurityConfig - io.xiaper.mq.stomp中的类
https://docs.spring.io/spring-security/site/docs/current/reference/html/websocket.html
StompSecurityConfig() - 类 的构造器io.xiaper.mq.stomp.StompSecurityConfig
 
StompSubscribeListener - io.xiaper.mq.stomp.listener中的类
published when a new STOMP SUBSCRIBE is received.
StompSubscribeListener() - 类 的构造器io.xiaper.mq.stomp.listener.StompSubscribeListener
 
StompUnsubscribeListener - io.xiaper.mq.stomp.listener中的类
published when a new STOMP UNSUBSCRIBE is received.
StompUnsubscribeListener() - 类 的构造器io.xiaper.mq.stomp.listener.StompUnsubscribeListener
 
subscribeThread(Principal, String) - 类 中的方法io.xiaper.mq.stomp.StompController
订阅会话id,返回会话中的用户 注意: 不能监听订阅 /topic/ https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-stomp-subscribe-mapping

T

threadQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听Thread会话消息
toMessage(Object, MessageProperties) - 类 中的方法io.xiaper.mq.converter.ProtobufMessageConverter
 
topicExchange() - 类 中的方法io.xiaper.mq.config.RabbitConfig
exchange types: 1. fanout: broadcast 2. direct: exact key 3. topic: wildcard key 4. headers

U

userQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听所有用户消息

W

WebSocketConfig - io.xiaper.mq.webscoket中的类
https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-server-handler
WebSocketConfig() - 类 的构造器io.xiaper.mq.webscoket.WebSocketConfig
 
WebSocketMessageHandler - io.xiaper.mq.webscoket中的类
https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-server 测试链接: http://localhost:8000/visitor/wss
WebSocketMessageHandler() - 类 的构造器io.xiaper.mq.webscoket.WebSocketMessageHandler
 
workGroupQueue() - 类 中的方法io.xiaper.mq.config.RabbitConfig
监听所有工作组消息
A B C F G H I L M O P R S T U W 
跳过导航链接

Copyright © 2019. All rights reserved.