nstream.adapter.nats.NatsConsumerConfProvision Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nstream-adapter-nats Show documentation
Show all versions of nstream-adapter-nats Show documentation
Templates for consuming from and producing to NATS with Swim
The newest version!
//package nstream.adapter.nats;
//
//import io.nats.client.api.ConsumerConfiguration;
//import java.util.Properties;
//import nstream.adapter.common.provision.Provision;
//
//public class NatsConsumerConfProvision implements Provision {
//
// private ConsumerConfiguration value;
//
// public NatsConsumerConfProvision() {
// }
//
// @Override
// public ConsumerConfiguration value() {
// return this.value;
// }
//
// @Override
// public void load(Properties properties) {
// if (this.value != null) {
// throw new IllegalStateException("NatsConsumerConfProvision already loaded");
// }
// try {
// this.value = NatsConsumerConfLoader.toLoadableConf(properties);
// } catch (Exception e) {
// throw new RuntimeException("Failed to load NATS Consumer Configuration Provision from properties "
// + properties, e);
// }
// }
//
// @Override
// public void unload() {
// this.value = null;
// }
//
//}