org.infinispan.hotrod.HotRodAsyncMultimaps Maven / Gradle / Ivy
The newest version!
package org.infinispan.hotrod;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Flow;
import org.infinispan.api.async.AsyncMultimap;
import org.infinispan.api.async.AsyncMultimaps;
import org.infinispan.api.configuration.MultimapConfiguration;
/**
* @since 14.0
**/
public class HotRodAsyncMultimaps implements AsyncMultimaps {
private final HotRod hotrod;
HotRodAsyncMultimaps(HotRod hotrod) {
this.hotrod = hotrod;
}
@Override
public CompletionStage> create(String name, MultimapConfiguration cacheConfiguration) {
return CompletableFuture.completedFuture(new HotRodAsyncMultimap<>(hotrod, name)); // PLACEHOLDER
}
@Override
public CompletionStage> create(String name, String template) {
return CompletableFuture.completedFuture(new HotRodAsyncMultimap<>(hotrod, name)); // PLACEHOLDER
}
@Override
public CompletionStage> get(String name) {
return CompletableFuture.completedFuture(new HotRodAsyncMultimap<>(hotrod, name)); // PLACEHOLDER
}
@Override
public CompletionStage remove(String name) {
return null;
}
@Override
public Flow.Publisher names() {
return null;
}
@Override
public CompletionStage createTemplate(String name, MultimapConfiguration cacheConfiguration) {
return null;
}
@Override
public CompletionStage removeTemplate(String name) {
return null;
}
@Override
public Flow.Publisher templateNames() {
return null;
}
}