io.ap4k.option.config.JvmConfig Maven / Gradle / Ivy
The newest version!
package io.ap4k.option.config;
import io.ap4k.project.Project;
import io.ap4k.kubernetes.config.ConfigKey;
import io.ap4k.kubernetes.config.Configuration;
import java.lang.Object;
import io.ap4k.option.annotation.SecureRandomSource;
import java.util.Map;
import io.sundr.builder.annotations.Buildable;
import io.ap4k.option.annotation.GarbageCollector;
@Buildable(builderPackage = "io.ap4k.deps.kubernetes.api.builder") public class JvmConfig extends Configuration{
private int xms = 0;
private int xmx = 0;
private boolean server = false;
private boolean useStringDeduplication = false;
private boolean preferIPv4Stack = false;
private boolean heapDumpOnOutOfMemoryError = false;
private boolean useGCOverheadLimit = false;
private GarbageCollector gc = io.ap4k.option.annotation.GarbageCollector.Undefined;
private SecureRandomSource secureRandom = io.ap4k.option.annotation.SecureRandomSource.Undefined;
public JvmConfig(){
}
public JvmConfig(Project project,Map attributes,int xms,int xmx,boolean server,boolean useStringDeduplication,boolean preferIPv4Stack,boolean heapDumpOnOutOfMemoryError,boolean useGCOverheadLimit,GarbageCollector gc,SecureRandomSource secureRandom){
super(project, attributes);
this.xms = xms;
this.xmx = xmx;
this.server = server;
this.useStringDeduplication = useStringDeduplication;
this.preferIPv4Stack = preferIPv4Stack;
this.heapDumpOnOutOfMemoryError = heapDumpOnOutOfMemoryError;
this.useGCOverheadLimit = useGCOverheadLimit;
this.gc = gc != null ? gc : io.ap4k.option.annotation.GarbageCollector.Undefined;
this.secureRandom = secureRandom != null ? secureRandom : io.ap4k.option.annotation.SecureRandomSource.Undefined;
}
public int getXms(){
return this.xms;
}
public int getXmx(){
return this.xmx;
}
public boolean isServer(){
return this.server;
}
public boolean isUseStringDeduplication(){
return this.useStringDeduplication;
}
public boolean isPreferIPv4Stack(){
return this.preferIPv4Stack;
}
public boolean isHeapDumpOnOutOfMemoryError(){
return this.heapDumpOnOutOfMemoryError;
}
public boolean isUseGCOverheadLimit(){
return this.useGCOverheadLimit;
}
public GarbageCollector getGc(){
return this.gc;
}
public SecureRandomSource getSecureRandom(){
return this.secureRandom;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy