All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.iot.service.sdk.Receiver Maven / Gradle / Ivy

There is a newer version: 1.0.11
Show newest version
/*
 * 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