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
|
FileUploadNotification |
receive(long timeoutMs)
Receive FileUploadNotification with specific timeout
|
CompletableFuture<FileUploadNotification> |
receiveAsync()
Async wrapper for receive() operation with default timeout
|
CompletableFuture<FileUploadNotification> |
receiveAsync(long timeoutMs)
Async wrapper for receive() operation with specific timeout
|
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 © 2017. All rights reserved.