io.github.yawenok.fcm.client.FcmClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fcm-client Show documentation
Show all versions of fcm-client Show documentation
FCM client for java!Based on HttpAsyncClient.
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;
}