public class FileUploadNotificationReceiver extends Receiver
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close AmqpReceive object
|
CompletableFuture<Void> |
closeAsync()
Async wrapper for close() operation
|
void |
open()
Open AmqpReceive object
|
CompletableFuture<Void> |
openAsync()
Async wrapper for open() operation
|
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.
|
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.
|
CompletableFuture<FileUploadNotification> |
receiveAsync()
Async wrapper for receive() operation with default timeout
QoS for receiving file upload notifications is at least once
|
CompletableFuture<FileUploadNotification> |
receiveAsync(long timeoutMs)
Async wrapper for receive() operation with specific timeout
QoS for receiving file upload notifications is at least once
|
public void open()
throws IOException
IOException - This exception is thrown if the input AmqpReceive object is nullpublic void close()
throws IOException
IOException - This exception is thrown if the input AmqpReceive object is nullpublic FileUploadNotification receive() throws IOException, InterruptedException
IOException - This exception is thrown if the input AmqpReceive object is nullInterruptedException - This exception is thrown if the receive process has been interruptedpublic FileUploadNotification receive(long timeoutMs) throws IOException, InterruptedException
timeoutMs - The timeout in millisecondsIOException - This exception is thrown if the input AmqpReceive object is nullInterruptedException - This exception is thrown if the receive process has been interruptedpublic CompletableFuture<Void> openAsync()
public CompletableFuture<Void> closeAsync()
closeAsync in class Receiverpublic CompletableFuture<FileUploadNotification> receiveAsync()
receiveAsync in class Receiverpublic CompletableFuture<FileUploadNotification> receiveAsync(long timeoutMs)
receiveAsync in class ReceiverCopyright © 2022. All rights reserved.