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

com.absmartly.sdk.DefaultContextEventHandler Maven / Gradle / Ivy

package com.absmartly.sdk;

import java8.util.concurrent.CompletableFuture;

import javax.annotation.Nonnull;

import com.absmartly.sdk.json.PublishEvent;

public class DefaultContextEventHandler implements ContextEventHandler {
	public DefaultContextEventHandler(@Nonnull final Client client) {
		client_ = client;
	}

	@Override
	public CompletableFuture publish(@Nonnull final Context context, @Nonnull final PublishEvent event) {
		return client_.publish(event);
	}

	private final Client client_;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy