| 限定符和类型 | 方法和说明 |
|---|---|
protected Message |
MsgCodecImpl.createMessage(String command,
List<Header> headers,
String payload) |
protected Message |
MsgCodecImpl.createMessage(String command,
List<Header> headers,
String payload) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Stomp.ack(Message message)
确认收到某条消息
|
void |
Stomp.ack(Message message)
确认收到某条消息
|
String |
MsgCodec.encode(Message input)
编码
|
String |
MsgCodecImpl.encode(Message input) |
String |
MsgCodecImpl.encode(Message input) |
String |
MsgCodec.encode(Message input)
编码
|
protected List<Header> |
MsgCodecImpl.msgHeaders(Message input) |
protected List<Header> |
MsgCodecImpl.msgHeaders(Message input) |
void |
Stomp.send(Message message)
发送消息给服务器
|
void |
Stomp.send(Message message)
发送消息给服务器
|
boolean |
Subscriber.tryCallback(String id,
Message msg) |
boolean |
Subscriber.tryCallback(String id,
Message msg) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
MsgCodecImpl.decode(Consumer<Message> out,
int start) |
protected void |
MsgCodecImpl.decode(Consumer<Message> out,
int start) |
void |
MsgCodec.decode(String input,
Consumer<Message> out)
解码
|
void |
MsgCodecImpl.decode(String input,
Consumer<Message> out) |
void |
MsgCodecImpl.decode(String input,
Consumer<Message> out) |
void |
MsgCodec.decode(String input,
Consumer<Message> out)
解码
|
Stomp |
Stomp.queue(String destination,
Consumer<Message> callback)
监听队列消息
|
Stomp |
Stomp.queue(String destination,
Consumer<Message> callback)
监听队列消息
|
Stomp |
Stomp.queue(String destination,
List<Header> headers,
Consumer<Message> callback)
监听队列消息
|
Stomp |
Stomp.queue(String destination,
List<Header> headers,
Consumer<Message> callback)
监听队列消息
|
Stomp |
Stomp.setOnError(Consumer<Message> onError)
错误回调(服务器返回的错误信息)
|
Stomp |
Stomp.setOnError(Consumer<Message> onError)
错误回调(服务器返回的错误信息)
|
Stomp |
Stomp.subscribe(String destination,
List<Header> headers,
Consumer<Message> callback)
订阅消息
|
Stomp |
Stomp.subscribe(String destination,
List<Header> headers,
Consumer<Message> callback)
订阅消息
|
Stomp |
Stomp.topic(String destination,
Consumer<Message> callback)
监听主题消息
|
Stomp |
Stomp.topic(String destination,
Consumer<Message> callback)
监听主题消息
|
Stomp |
Stomp.topic(String destination,
List<Header> headers,
Consumer<Message> callback)
监听主题消息
|
Stomp |
Stomp.topic(String destination,
List<Header> headers,
Consumer<Message> callback)
监听主题消息
|
| 构造器和说明 |
|---|
Subscriber(Stomp stomp,
String destination,
Consumer<Message> callback,
List<Header> headers) |
Subscriber(Stomp stomp,
String destination,
Consumer<Message> callback,
List<Header> headers) |
Copyright © 2022 江苏一键联信息科技有限公司. All rights reserved.