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

nstream.adapter.nats.NatsConsumerConfProvision Maven / Gradle / Ivy

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;
//  }
//
//}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy