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

com.thomsonreuters.ema.access.GlobalPool Maven / Gradle / Ivy

There is a newer version: 3.5.1.0
Show 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 Refinitiv. All rights reserved.            --
///*|-----------------------------------------------------------------------------

package com.thomsonreuters.ema.access;

import java.util.ArrayDeque;
import java.util.concurrent.locks.ReentrantLock;

import com.thomsonreuters.upa.codec.Buffer;
import com.thomsonreuters.upa.codec.CodecFactory;
import com.thomsonreuters.upa.codec.Date;
import com.thomsonreuters.upa.codec.Double;
import com.thomsonreuters.upa.codec.DateTime;
import com.thomsonreuters.upa.codec.Enum;
import com.thomsonreuters.upa.codec.Float;
import com.thomsonreuters.upa.codec.Int;
import com.thomsonreuters.upa.codec.Qos;
import com.thomsonreuters.upa.codec.Real;
import com.thomsonreuters.upa.codec.State;
import com.thomsonreuters.upa.codec.Time;
import com.thomsonreuters.upa.codec.UInt;

class GlobalPool
{
	private final static int DATA_POOL_INITIAL_SIZE = 40;

	static ReentrantLock _globalLock = new java.util.concurrent.locks.ReentrantLock();
	
	private static ArrayDeque _DatePool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE); 
	private static ArrayDeque _DateTimePool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque _DoublePool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque _EnumPool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque _FloatPool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque _IntPool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque _QosPool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque _RealPool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque _BufferPool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque _StatePool = new ArrayDeque<>(DATA_POOL_INITIAL_SIZE);
	private static ArrayDeque




© 2015 - 2024 Weber Informatics LLC | Privacy Policy