AmqpReceive.receive(long timeoutMs) 方法

定义

Synchronized call to receive feedback batch Hide the event based receiving mechanism from the user API

public synchronized FeedbackBatch receive(long timeoutMs)

参数

timeoutMs
long

The timeout in milliseconds to wait for the feedback

返回

synchronized FeedbackBatch

The received feedback batch

例外

IOException

This exception is thrown if the input AmqpReceive object is null

InterruptedException

This exception is thrown if the receive process has been interrupted

适用于