public interface BatchMessageListener
BatchMessageListener interface and register itself to a consumer
instance to asynchronously receive messages.| Modifier and Type | Interface and Description |
|---|---|
static interface |
BatchMessageListener.Context |
| Modifier and Type | Method and Description |
|---|---|
void |
onReceived(List<Message> batchMessage,
BatchMessageListener.Context context)
Callback method to receive incoming messages.
|
void onReceived(List<Message> batchMessage, BatchMessageListener.Context context)
A message listener should handle different types of BatchMessage.
batchMessage - the received batchMessage.Copyright © 2017–2020 OpenMessaging. All rights reserved.