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
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Close Amqp |
java.util.concurrent.CompletableFuture<java.lang.Void> |
closeAsync()
Async wrapper for close() operation |
void |
open()
Open Amqp |
java.util.concurrent.CompletableFuture<java.lang.Void> |
openAsync()
Async wrapper for open() operation |
File |
receive()
Receive File |
File |
receive(long timeoutMs)
Receive File |
java.util.concurrent.CompletableFuture<File |
receiveAsync()
Async wrapper for receive() operation with default timeout QoS for receiving file upload notifications is at least once |
java.util.concurrent.CompletableFuture<File |
receiveAsync(long timeoutMs)
Async wrapper for receive() operation with specific timeout QoS for receiving file upload notifications is at least once |
Methods inherited from Receiver
Methods inherited from java.lang.Object
Method Details
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:
Applies to
Azure SDK for Java