001package io.avaje.json.stream;
002
003/** Strategy for recycling buffers used in parsing and generation. */
004public enum BufferRecycleStrategy {
005
006  /** Do not perform any sort of recycling. */
007  NO_RECYCLING,
008  /** A lock free implementation designed for virtual thread use */
009  LOCK_FREE,
010  /** Use Thread Locals for recycling buffers */
011  THREAD_LOCAL,
012  /** Use 2 recyclers and switch between them depending on the nature of thread (virtual or not) */
013  HYBRID_POOL;
014
015}