com.microsoft.azure.iot.service.sdk.Receiver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iothub-java-service-client Show documentation
Show all versions of iothub-java-service-client Show documentation
The Microsoft Azure IoT Service SDK for Java
/*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.iot.service.sdk;
import java.util.concurrent.CompletableFuture;
/**
* A receiver is a class abstracting the methods to receive messages,
* in order to use it for multiple endpoints, e.g. feedback endpoint,
* “alerts” (i.e. D2C).
*/
public abstract class Receiver
{
protected abstract CompletableFuture openAsync();
protected abstract CompletableFuture closeAsync();
protected abstract CompletableFuture receiveAsync();
protected abstract CompletableFuture receiveAsync(long timeoutSeconds);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy