object MemorySizeConfigParameter extends Serializable
Describes a memory quantity as defined by https://github.com/lightbend/config/blob/master/HOCON.md#size-in-bytes-format
The following units can be used with MemorySizeConfigParameter
"B", "b", "byte", "bytes", "kB", "kilobyte", "kilobytes", "MB", "megabyte", "megabytes", "GB", "gigabyte", "gigabytes", "TB", "terabyte", "terabytes", "PB", "petabyte", "petabytes", "EB", "exabyte", "exabytes", "ZB", "zettabyte", "zettabytes", "YB", "yottabyte", "yottabytes", "K", "k", "Ki", "KiB", "kibibyte", "kibibytes", "M", "m", "Mi", "MiB", "mebibyte", "mebibytes", "G", "g", "Gi", "GiB", "gibibyte", "gibibytes", "T", "t", "Ti", "TiB", "tebibyte", "tebibytes", "P", "p", "Pi", "PiB", "pebibyte", "pebibytes", "E", "e", "Ei", "EiB", "exbibyte", "exbibytes", "Z", "z", "Zi", "ZiB", "zebibyte", "zebibytes", "Y", "y", "Yi", "YiB", "yobibyte", "yobibytes",
Example on how to extract a duration value using config:
val parameter = MemorySizeMemorySizeConfigParameter("max-size-of-log","Maximum size of log before wrapping","8M") ... val memorySize = config.getMemorySize(parameter.key)
- Source
- ConfigParameters.scala
- Alphabetic
- By Inheritance
- MemorySizeConfigParameter
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def create(key: String, description: String): MemorySizeConfigParameter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )