TimeUnit

public enum TimeUnit

The TimeUnit specifies what time unit should be used to specify time when the module trash should be cleaned. This enum is related with the property org.motechproject.mds.util.Constants.Config.MDS_TIME_UNIT.

Each value from this enum can be converted to long value that presents time interval in milliseconds. For example the HOURS value is equal to {@value 3.6E6}.

The UNKNOWN value should not be used in code as appropriate value. It was added to ensure that the fromString(String) method will not return {@value null} value.

Enum Constants

DAYS

public static final TimeUnit DAYS

HOURS

public static final TimeUnit HOURS

MONTHS

public static final TimeUnit MONTHS

UNKNOWN

public static final TimeUnit UNKNOWN

WEEKS

public static final TimeUnit WEEKS

YEARS

public static final TimeUnit YEARS