Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 2011-2019 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
*/
package com.arangodb.shaded.vertx.core.impl;
import com.arangodb.shaded.netty.channel.EventLoop;
import com.arangodb.shaded.vertx.core.*;
import com.arangodb.shaded.vertx.core.impl.logging.Logger;
import com.arangodb.shaded.vertx.core.impl.logging.LoggerFactory;
import com.arangodb.shaded.vertx.core.json.JsonObject;
import com.arangodb.shaded.vertx.core.spi.metrics.PoolMetrics;
import com.arangodb.shaded.vertx.core.spi.tracing.VertxTracer;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.Executor;
import java.util.concurrent.RejectedExecutionException;
/**
* A base class for {@link Context} implementations.
*
* @author Tim Fox
* @author Julien Viet
*/
public abstract class ContextBase implements ContextInternal {
static void setResultHandler(ContextInternal ctx, Future fut, Handler> resultHandler) {
if (resultHandler != null) {
fut.onComplete(resultHandler);
} else {
fut.onFailure(ctx::reportException);
}
}
private static final Logger log = LoggerFactory.getLogger(ContextBase.class);
private static final String DISABLE_TIMINGS_PROP_NAME = "vertx.disableContextTimings";
static final boolean DISABLE_TIMINGS = Boolean.getBoolean(DISABLE_TIMINGS_PROP_NAME);
private final VertxInternal owner;
private final JsonObject config;
private final Deployment deployment;
private final CloseFuture closeFuture;
private final ClassLoader tccl;
private final EventLoop eventLoop;
private ConcurrentMap