com.turbospaces.ebean.BroadcastChannel Maven / Gradle / Ivy
package com.turbospaces.ebean;
import java.util.Collection;
import java.util.Map;
import org.apache.commons.lang3.time.StopWatch;
import io.ebean.cache.ServerCacheNotification;
import io.ebean.cache.ServerCacheType;
import io.vavr.concurrent.Promise;
public interface BroadcastChannel {
Promise broadcastPutAsync(String cacheKey, ServerCacheType type, String key, Object obj) throws Throwable;
Promise broadcastPutAllAsync(String cacheKey, ServerCacheType type, Map map) throws Throwable;
Promise broadcastRemoveAsync(String cacheKey, String key) throws Throwable;
Promise broadcastRemoveAllAsync(String cacheKey, Collection keys) throws Throwable;
Promise broadcastClearAllAsync(String cacheKey);
Promise broadcastClearAllAsync();
Promise broadcastAsync(ServerCacheNotification notification, String data);
}