org.scassandra.http.client.UnpreparedConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Allows Java applications to use Scassandra
package org.scassandra.http.client;
import java.util.Map;
import com.google.common.collect.ImmutableMap;
import org.scassandra.server.priming.ErrorConstants;
public class UnpreparedConfig extends Config {
private String prepareId;
private String message;
public UnpreparedConfig(String prepareId) {
this(prepareId, null);
}
public UnpreparedConfig(String prepareId, String message) {
this.prepareId = prepareId;
this.message = message;
}
@Override
Map getProperties() {
ImmutableMap.Builder mapBuilder = ImmutableMap.builder();
mapBuilder.put(ErrorConstants.PrepareId(), prepareId);
if(message != null) {
mapBuilder.put(ErrorConstants.Message(), message);
}
return mapBuilder.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy