FileUploadNotificationReceiver.receive 方法

定义

重载

receive()

Receive FileUploadNotification with default timeout

QoS for receiving file upload notifications is at least once

This function is synchronized internally so that only one receive operation is allowed at a time. In order to do more receive operations at a time, you will need to instantiate another FileUploadNotificationReceiver instance.

receive(long timeoutMs)

Receive FileUploadNotification with specific timeout

QoS for receiving file upload notifications is at least once

This function is synchronized internally so that only one receive operation is allowed at a time. In order to do more receive operations at a time, you will need to instantiate another FileUploadNotificationReceiver instance.

receive()

Receive FileUploadNotification with default timeout

QoS for receiving file upload notifications is at least once

This function is synchronized internally so that only one receive operation is allowed at a time. In order to do more receive operations at a time, you will need to instantiate another FileUploadNotificationReceiver instance.

public FileUploadNotification receive()

返回

The received FileUploadNotification object

例外

IOException

This exception is thrown if the input AmqpReceive object is null

InterruptedException

This exception is thrown if the receive process has been interrupted

receive(long timeoutMs)

Receive FileUploadNotification with specific timeout

QoS for receiving file upload notifications is at least once

This function is synchronized internally so that only one receive operation is allowed at a time. In order to do more receive operations at a time, you will need to instantiate another FileUploadNotificationReceiver instance.

public FileUploadNotification receive(long timeoutMs)

参数

timeoutMs
long

The timeout in milliseconds

返回

The received FileUploadNotification object

例外

IOException

This exception is thrown if the input AmqpReceive object is null

InterruptedException

This exception is thrown if the receive process has been interrupted

适用于