25 lines
760 B
Java
25 lines
760 B
Java
package it.cavallium.dbengine.client;
|
|
|
|
import io.soabase.recordbuilder.core.RecordBuilder;
|
|
import it.cavallium.dbengine.database.Column;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@RecordBuilder
|
|
public record DatabaseOptions(Map<String, String> extraFlags,
|
|
boolean absoluteConsistency,
|
|
boolean lowMemory,
|
|
boolean inMemory,
|
|
boolean useDirectIO,
|
|
boolean allowMemoryMapping,
|
|
boolean allowNettyDirect,
|
|
boolean useNettyDirect,
|
|
int maxOpenFiles) {
|
|
|
|
public DatabaseOptions {
|
|
if (useNettyDirect && !allowNettyDirect) {
|
|
throw new IllegalArgumentException("If allowNettyDirect is false, you must also set useNettyDirect to false");
|
|
}
|
|
}
|
|
}
|