io.vertx.redis.client.RedisOptionsConverter Maven / Gradle / Ivy
package io.vertx.redis.client;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
/**
* Converter for {@link io.vertx.redis.client.RedisOptions}.
* NOTE: This class has been automatically generated from the {@link io.vertx.redis.client.RedisOptions} original class using Vert.x codegen.
*/
public class RedisOptionsConverter {
public static void fromJson(Iterable> json, RedisOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "connectionString":
if (member.getValue() instanceof String) {
obj.setConnectionString((String)member.getValue());
}
break;
case "connectionStrings":
if (member.getValue() instanceof JsonArray) {
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy