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

io.github.yawenok.fcm.client.FcmClient Maven / Gradle / Ivy

The newest version!
package io.github.yawenok.fcm.client;

import io.github.yawenok.fcm.client.concurrent.FutureCallback;
import io.github.yawenok.fcm.client.response.FcmMessageResponse;
import io.github.yawenok.fcm.client.request.FcmMessage;
import io.github.yawenok.fcm.client.exceptions.ConnectionException;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;

public interface FcmClient {

    void init(FcmConfig config) throws ConnectionException;

    void destroy();

    FcmMessageResponse sendMessageSync(FcmMessage message) throws InterruptedException, ExecutionException, ConnectionException;

    Future sendMessageAsync(FcmMessage message) throws ConnectionException;

    void sendMessageAsync(FcmMessage message, FutureCallback callback) throws ConnectionException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy