FileUploadNotificationReceiver Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. Receiver - com.
microsoft. azure. sdk. iot. service. FileUploadNotificationReceiver
- com.
- com.
public class FileUploadNotificationReceiver
extends Receiver
Modifier and Type | Method and Description |
---|---|
void |
close()
Close Amqp |
java.util.concurrent.CompletableFuture<java.lang.Void> |
close Async wrapper for close() operation |
void |
open()
Open Amqp |
java.util.concurrent.CompletableFuture<java.lang.Void> |
open Async wrapper for open() operation |
File |
receive()
Receive File |
File |
receive(long timeout Receive File |
java.util.concurrent.CompletableFuture<File |
receive Async wrapper for receive() operation with default timeout QoS for receiving file upload notifications is at least once |
java.util.concurrent.CompletableFuture<File |
receive Async wrapper for receive() operation with specific timeout QoS for receiving file upload notifications is at least once |
Methods inherited from Receiver
close
public void close()
Close AmqpReceive object
Throws:
closeAsync
public CompletableFuture
Async wrapper for close() operation
Overrides:
FileUploadNotificationReceiver.closeAsync()Returns:
open
public void open()
Open AmqpReceive object
Throws:
openAsync
public CompletableFuture
Async wrapper for open() operation
Overrides:
FileUploadNotificationReceiver.openAsync()Returns:
receive
public FileUploadNotification 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.
Returns:
Throws:
receive
public FileUploadNotification 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.
Parameters:
Returns:
Throws:
receiveAsync
public CompletableFuture
Async wrapper for receive() operation with default timeout QoS for receiving file upload notifications is at least once
Overrides:
FileUploadNotificationReceiver.receiveAsync()Returns:
receiveAsync
public CompletableFuture
Async wrapper for receive() operation with specific timeout QoS for receiving file upload notifications is at least once
Overrides:
FileUploadNotificationReceiver.receiveAsync(long timeoutMs)Parameters:
Returns:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: