类 RabbitMQProducer
java.lang.Object
com.sh.wf.mq.rabbitmq.RabbitMQBase
com.sh.wf.mq.rabbitmq.RabbitMQProducer
Description:
Title:首亨软件 - 聚天平台
- 从以下版本开始:
- 2018年12月17日
-
字段概要
从类继承的字段 com.sh.wf.mq.rabbitmq.RabbitMQBase
channel, connType, DEFAULT_EXCHANGE_NAME, exchange -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static RabbitMQProducerstatic RabbitMQProducergetInstance(String exchange) static RabbitMQProducergetInstance(String connType, String exchange) booleansendDelayMessage(String msg, boolean durable, int timeMills) 发送消息 发布订阅模式booleansendDelayMessage(String msg, int timeMills) 发送消息 发布订阅模式 不离线消息消息,可能丢失消息booleansendDelayMessage(String msg, String type, String routeKey, boolean durable, int timeMills) booleansendDelayMessageSecurity(String msg, boolean durable, int timeMills) booleansendMessage(String msg) 发送消息 发布订阅模式 不离线消息消息,可能丢失消息booleansendMessage(String msg, boolean durable) 发送消息 发布订阅模式booleansendMessageRoute(String msg, String routeKey) 路由消息,不离线消息,可能丢失消息booleansendMessageRoute(String msg, String routeKey, boolean durable) 发送消息,路由模式booleanbooleansendMessageSecurity(String msg, boolean durable) 发送消息,发送完毕后会马上关闭booleansendMessageTopic(String msg, String routeKey) topic发送消息,不离线消息,可能丢失消息booleansendMessageTopic(String msg, String routeKey, boolean durable) 发送消息 topic模式setConnType(String connType) 从类继承的方法 com.sh.wf.mq.rabbitmq.RabbitMQBase
connect, connect, disconnect, getChannel
-
构造器详细资料
-
RabbitMQProducer
public RabbitMQProducer() -
RabbitMQProducer
-
RabbitMQProducer
-
-
方法详细资料
-
getInstance
-
getInstance
-
getInstance
-
setConnType
- 覆盖:
setConnType在类中RabbitMQBase
-
sendMessageRoute
路由消息,不离线消息,可能丢失消息- 参数:
msg- 发送消息routeKey- 路由值- 返回:
- boolean
-
sendMessageRoute
发送消息,路由模式- 参数:
msg- 发送消息routeKey- 路由durable- 是否离线消息,默认:false- 返回:
- boolean
-
sendMessageTopic
topic发送消息,不离线消息,可能丢失消息- 参数:
msg- 发送消息routeKey- 路由值- 返回:
- boolean
-
sendMessageTopic
发送消息 topic模式- 参数:
msg- 发送消息routeKey- 路由值durable- 是否离线消息,默认:false- 返回:
- boolean
-
sendMessage
发送消息 发布订阅模式 不离线消息消息,可能丢失消息- 参数:
msg- 发送消息- 返回:
- boolean
-
sendMessage
发送消息 发布订阅模式- 参数:
msg- 发送消息durable- 是否离线消息,默认:false- 返回:
- boolean
-
sendDelayMessage
发送消息 发布订阅模式 不离线消息消息,可能丢失消息- 参数:
msg- 发送消息- 返回:
- boolean
-
sendDelayMessage
发送消息 发布订阅模式- 参数:
msg- 发送消息durable- 是否离线消息,默认:false- 返回:
- boolean
-
sendDelayMessage
-
sendMessageSecurity
-
sendMessageSecurity
发送消息,发送完毕后会马上关闭- 参数:
msg- Stringdurable- boolean- 返回:
- boolean
-
sendDelayMessageSecurity
-