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

io.github.yawenok.apns.http2.ApnsHttp2Connection Maven / Gradle / Ivy

package io.github.yawenok.apns.http2;

import io.github.yawenok.apns.http2.concurrent.FutureCallback;
import io.github.yawenok.apns.http2.config.AuthConfig;
import io.github.yawenok.apns.http2.exceptions.AuthenticationException;
import io.github.yawenok.apns.http2.config.ProxyConfig;
import io.github.yawenok.apns.http2.exceptions.ConnectionException;

import java.util.concurrent.Future;

public interface ApnsHttp2Connection {
    void init(String host, int port, AuthConfig authConfig, ProxyConfig proxyConfig) throws AuthenticationException, ConnectionException;

    void destroy();

    boolean isActive();

    void reActive() throws ConnectionException;

    Future sendNotification(Notification notification) throws ConnectionException;

    void sendNotification(Notification notification, FutureCallback callback) throws ConnectionException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy