Enum Class SerdeJacksonConfiguration.RecyclerPoolType
java.lang.Object
java.lang.Enum<SerdeJacksonConfiguration.RecyclerPoolType>
io.micronaut.serde.jackson.SerdeJacksonConfiguration.RecyclerPoolType
- All Implemented Interfaces:
Serializable, Comparable<SerdeJacksonConfiguration.RecyclerPoolType>, Constable
- Enclosing class:
SerdeJacksonConfiguration
public static enum SerdeJacksonConfiguration.RecyclerPoolType
extends Enum<SerdeJacksonConfiguration.RecyclerPoolType>
The pools of the buffers that Jackson parsers and generators reuse. Pools that are not shared belong to one JSON
mapper.
- Since:
- 3.3.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA pool bounded bySerdeJacksonConfiguration.getRecyclerPoolSize().An unbounded pool.Selects the pool for the current thread: a buffer recycler per platform thread, and a concurrent deque pool for virtual threads, which a thread local pool would never reuse.No pool: every parser and generator allocates its buffers.A bounded pool shared by all JSON mappers, with the Jackson default capacity.An unbounded pool shared by all JSON mappers.A buffer recycler per thread, which is not reused on virtual threads. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Selects the pool for the current thread: a buffer recycler per platform thread, and a concurrent deque pool for virtual threads, which a thread local pool would never reuse. -
THREAD_LOCAL
A buffer recycler per thread, which is not reused on virtual threads. -
CONCURRENT_DEQUE
An unbounded pool. -
SHARED_CONCURRENT_DEQUE
An unbounded pool shared by all JSON mappers. -
BOUNDED
A pool bounded bySerdeJacksonConfiguration.getRecyclerPoolSize(). -
SHARED_BOUNDED
A bounded pool shared by all JSON mappers, with the Jackson default capacity. -
NONE
No pool: every parser and generator allocates its buffers.
-
-
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
-