All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.refinitiv.eta.json.util.JsonFactory Maven / Gradle / Ivy

The newest version!
/*|-----------------------------------------------------------------------------
 *|            This source code is provided under the Apache 2.0 license
 *|  and is provided AS IS with no warranty or guarantee of fit for purpose.
 *|                See the project's LICENSE.md for details.
 *|           Copyright (C) 2019-2022 LSEG. All rights reserved.     
 *|-----------------------------------------------------------------------------
 */

package com.refinitiv.eta.json.util;

import com.refinitiv.eta.codec.Double;
import com.refinitiv.eta.codec.Enum;
import com.refinitiv.eta.codec.Float;
import com.refinitiv.eta.codec.*;

import java.nio.ByteBuffer;

public class JsonFactory {
    private static ObjectPool intPool = new ObjectPool<>(true, CodecFactory::createInt);
    private static ObjectPool uintPool = new ObjectPool<>(true, CodecFactory::createUInt);
    private static ObjectPool elementListPool = new ObjectPool<>(true, CodecFactory::createElementList);
    private static ObjectPool elementEntryPool = new ObjectPool<>(true, CodecFactory::createElementEntry);
    private static ObjectPool bufferPool = new ObjectPool<>(true, CodecFactory::createBuffer);
    private static ObjectPool fieldListPool = new ObjectPool<>(true, CodecFactory::createFieldList);
    private static ObjectPool fieldEntryPool = new ObjectPool<>(true, CodecFactory::createFieldEntry);
    private static ObjectPool vectorPool = new ObjectPool<>(true, CodecFactory::createVector);
    private static ObjectPool vectorEntryPool = new ObjectPool<>(true, CodecFactory::createVectorEntry);
    private static ObjectPool seriesPool = new ObjectPool<>(true, CodecFactory::createSeries);
    private static ObjectPool seriesEntryPool = new ObjectPool<>(true, CodecFactory::createSeriesEntry);
    private static ObjectPool filterListPool = new ObjectPool<>(true, CodecFactory::createFilterList);
    private static ObjectPool filterEntryPool = new ObjectPool<>(true, CodecFactory::createFilterEntry);
    private static ObjectPool realPool = new ObjectPool<>(true, CodecFactory::createReal);
    private static ObjectPool doublePool = new ObjectPool<>(true, CodecFactory::createDouble);
    private static ObjectPool floatPool = new ObjectPool<>(true, CodecFactory::createFloat);
    private static ObjectPool statePool = new ObjectPool<>(true, CodecFactory::createState);
    private static ObjectPool qosPool = new ObjectPool<>(true, CodecFactory::createQos);
    private static ObjectPool mapPool = new ObjectPool<>(true, CodecFactory::createMap);
    private static ObjectPool mapEntryPool = new ObjectPool<>(true, CodecFactory::createMapEntry);
    private static ObjectPool enumPool = new ObjectPool<>(true, CodecFactory::createEnum);
    private static ObjectPool




© 2015 - 2024 Weber Informatics LLC | Privacy Policy