io.vertx.core.impl.ContextImpl Maven / Gradle / Ivy
/*
* 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 io.vertx.core.impl;
import io.netty.channel.EventLoop;
import io.vertx.core.*;
import io.vertx.core.Future;
import io.vertx.core.impl.deployment.DeploymentContext;
import io.vertx.core.internal.EventExecutor;
import io.vertx.core.internal.logging.Logger;
import io.vertx.core.internal.logging.LoggerFactory;
import io.vertx.core.internal.CloseFuture;
import io.vertx.core.internal.ContextInternal;
import io.vertx.core.internal.VertxInternal;
import io.vertx.core.json.JsonObject;
import io.vertx.core.spi.tracing.VertxTracer;
import java.util.concurrent.*;
/**
* A base class for {@link Context} implementations.
*
* @author Tim Fox
* @author Julien Viet
*/
public final class ContextImpl extends ContextBase implements ContextInternal {
private static final Logger log = LoggerFactory.getLogger(ContextImpl.class);
static final boolean DISABLE_TIMINGS = SysProps.DISABLE_CONTEXT_TIMINGS.getBoolean();
private final VertxInternal owner;
private final JsonObject config;
private final DeploymentContext deployment;
private final CloseFuture closeFuture;
private final ClassLoader tccl;
private final EventLoopExecutor eventLoop;
private final ThreadingModel threadingModel;
private final EventExecutor executor;
private ConcurrentMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy