com.github.thorbenkuck.network.utils.PropertyUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easy-net Show documentation
Show all versions of easy-net Show documentation
An EventStream driven, simple to use Client/Server framework
package com.github.thorbenkuck.network.utils;
public class PropertyUtils {
public static int amountOfWorkers() {
String property = System.getProperty("easy.net.worker.amount", "8");
return Integer.parseInt(property);
}
public static boolean exitOnError() {
String property = System.getProperty("easy.net.implicit.error", "false");
return Boolean.parseBoolean(property);
}
}