org.wildfly.swarm.config.infinispan.remote_cache_container.RemoteClusterConsumer Maven / Gradle / Ivy
package org.wildfly.swarm.config.infinispan.remote_cache_container;
import org.wildfly.swarm.config.infinispan.remote_cache_container.RemoteCluster;
import java.lang.FunctionalInterface;
@FunctionalInterface
public interface RemoteClusterConsumer> {
/**
* Configure a pre-constructed instance of RemoteCluster resource
*
* @parameter Instance of RemoteCluster to configure
* @return nothing
*/
void accept(T value);
default RemoteClusterConsumer andThen(RemoteClusterConsumer after) {
return (c) -> {
this.accept(c);
after.accept(c);
};
}
}