* limitations under the License.
* ============LICENSE_END=========================================================
*/
+
package org.onap.aai.serialization.db;
import java.util.concurrent.ExecutorService;
public class GetAllPool {
- private ExecutorService pool;
-
- private GetAllPool() {
- pool = Executors.newWorkStealingPool(Runtime.getRuntime().availableProcessors());
- }
-
- private static class Helper {
- private static final GetAllPool INSTANCE = new GetAllPool();
- }
-
- public static GetAllPool getInstance() {
- return Helper.INSTANCE;
- }
-
- public ExecutorService getPool() {
-
- return this.pool;
- }
+ private ExecutorService pool;
+
+ private GetAllPool() {
+ pool = Executors.newWorkStealingPool(Runtime.getRuntime().availableProcessors());
+ }
+
+ private static class Helper {
+ private static final GetAllPool INSTANCE = new GetAllPool();
+ }
+
+ public static GetAllPool getInstance() {
+ return Helper.INSTANCE;
+ }
+
+ public ExecutorService getPool() {
+
+ return this.pool;
+ }
}