File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
openmessaging-api/src/main/java/io/openmessaging/consumer Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,16 @@ public interface Consumer extends ServiceLifecycle, Client {
251
251
* should implement in the {@link MessageListener}.
252
252
* <p>
253
253
*
254
+ * @param queueName receive message from which queueName in Message Queue.
255
+ * @param partitionId receive message from which partition in Message Queue.
256
+ * @param offset receive message from which offset in Message Queue.
254
257
* @param timeout receive messages will blocked at most <code>timeout</code> milliseconds.
255
258
* @return the next batch messages received from the bind queues, or null if the consumer is concurrently shut down.
256
259
* @throws OMSSecurityException when have no authority to receive messages from this queue.
257
260
* @throws OMSTimeOutException when the given timeout elapses before the send operation completes.
258
261
* @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error.
259
262
*/
260
- List <Message > batchReceive (long timeout );
263
+ List <Message > batchReceive (String queueName , int partitionId , long offset , long timeout );
261
264
262
265
/**
263
266
* Acknowledges the specified and consumed message with the unique message receipt handle, in the scenario of using
You can’t perform that action at this time.
0 commit comments