| java.lang.Object com.sleepycat.je.utilint.PropUtil
PropUtil | public class PropUtil (Code) | | Convenience methods for handling JE properties.
|
getBoolean | public static boolean getBoolean(Properties props, String propName)(Code) | | true if the property is set to "true". |
microsToMillis | public static long microsToMillis(long micros)(Code) | | Convert microseconds to milliseconds, ensuring that any microsecond
value greater than zero converts to at least one millisecond to avoid a
zero millisecond result since Object.wait(0) waits forever.
|
validateProps | public static Properties validateProps(Properties props, Set allowedProps, String apiMethod) throws DatabaseException(Code) | | Validate properties in the property bag. If null was passed, return an
empty property object, else return the original property object.
throws: DatabaseException - if the property bag containsa property not specified in the set of allowed properties. |
|
|