Package dev.gmitch215.bytebox.gradle
Enum Class SizeSpec.ModuleType
- All Implemented Interfaces:
Serializable,Comparable<SizeSpec.ModuleType>,Constable
- Enclosing class:
SizeSpec
How the compiled module is carried in the bundle.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRaw bytes, unless the module is too large for the platform to accept them.Raw bytes in aDatamodule.Deprecated, for removal: This API element is subject to removal in a future version.buys bundle bytes Cloudflare stopped metering on 2026-09-04, and spends startup time it still meters -
Method Summary
Modifier and TypeMethodDescriptionstatic SizeSpec.ModuleTypeReturns the enum constant of this class with the specified name.static SizeSpec.ModuleType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Raw bytes, unless the module is too large for the platform to accept them.A Java module reaches the second case only past 64 MiB, which is where compression stops being a trade and becomes the only way to deploy at all.
-
DATA
Raw bytes in aDatamodule.Nothing to inflate at module scope, so the startup budget pays for compiling the module and nothing else.
-
DATA_COMPRESSED
Deprecated, for removal: This API element is subject to removal in a future version.buys bundle bytes Cloudflare stopped metering on 2026-09-04, and spends startup time it still metersA compressed frame in aDatamodule, inflated at module scope.The decompressor has to be synchronous, because a module-scope await never settles on this runtime, and inflating runs inside the one second a Worker has to start.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-