Package com.bytedesk.core.uid.utils
package com.bytedesk.core.uid.utils
-
ClassDescriptionEnumUtils provides the operations for
ValuedEnum
such as Parse, value of...Named thread in ThreadFactory.NetUtilsRepresents a paddedAtomicLong
to prevent the FalseSharing problem<p> The CPU cache line commonly be 64 bytes, here is a sample of cache line after padding:<br> 64 bytes = 8 bytes (object reference) + 6 * 8 bytes (padded long) + 8 bytes (a long value)ValuedEnum<T>ValuedEnum
defines an enumeration which is bounded to a value, you may implements this interface when you defines such kind of enumeration, that you can useEnumUtils
to simplify parse and valueOf operation.