io.github.yawenok.apns.http2.ApnsHttp2Client Maven / Gradle / Ivy
package io.github.yawenok.apns.http2;
import io.github.yawenok.apns.http2.concurrent.FutureCallback;
import io.github.yawenok.apns.http2.exceptions.ConnectionException;
import io.github.yawenok.apns.http2.exceptions.AuthenticationException;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
public interface ApnsHttp2Client {
void init(ApnsConfig apnsConfig) throws AuthenticationException, ConnectionException;
void destroy();
NotificationResponse sendNotificationSync(Notification notification) throws InterruptedException, ExecutionException, ConnectionException, AuthenticationException;
Future sendNotificationAsync(Notification notification) throws ConnectionException, AuthenticationException;
void sendNotificationAsync(Notification notification, FutureCallback callback) throws ConnectionException, AuthenticationException;
}