Example usage for com.google.common.collect Maps newConcurrentMap

List of usage examples for com.google.common.collect Maps newConcurrentMap

Introduction

In this page you can find the example usage for com.google.common.collect Maps newConcurrentMap.

Prototype

public static <K, V> ConcurrentMap<K, V> newConcurrentMap() 

Source Link

Document

Returns a general-purpose instance of ConcurrentMap , which supports all optional operations of the ConcurrentMap interface.

Usage

From source file:org.apache.pulsar.functions.instance.processors.MessageProcessorBase.java

protected MessageProcessorBase(PulsarClient client, FunctionDetails functionDetails, SubscriptionType subType,
        LinkedBlockingDeque<InputMessage> processQueue) {
    this.client = client;
    this.functionDetails = functionDetails;
    this.subType = subType;
    this.processQueue = processQueue;
    this.inputConsumers = Maps.newConcurrentMap();
}

From source file:org.apache.log4j.DTLoggerFactory.java

private DTLoggerFactory() {
    loggerMap = Maps.newConcurrentMap();
    patternLevel = Maps.newHashMap();
    patterns = Maps.newHashMap();
}

From source file:org.apache.gobblin.scheduler.PathAlterationListenerAdaptorForMonitor.java

PathAlterationListenerAdaptorForMonitor(Path jobConfigFileDirPath, JobScheduler jobScheduler) {
    this.jobConfigFileDirPath = jobConfigFileDirPath;
    this.jobScheduler = jobScheduler;
    this.jobNameMap = Maps.newConcurrentMap();
}

From source file:org.apache.spark.network.sasl.SaslRpcHandler.java

public SaslRpcHandler(RpcHandler delegate, SecretKeyHolder secretKeyHolder) {
    this.delegate = delegate;
    this.secretKeyHolder = secretKeyHolder;
    this.channelAuthenticationMap = Maps.newConcurrentMap();
}

From source file:org.axonframework.ext.hazelcast.samples.queue.AxonService.java

public AxonService() {
    m_commandBus = null;//from   w w  w .j av a 2 s.co  m
    m_commandGateway = null;
    m_eventStore = null;
    m_eventBus = null;
    m_repoFactory = null;
    m_eventListeners = Sets.newHashSet();
    m_eventHandlers = Maps.newConcurrentMap();
    m_aggregates = Maps.newConcurrentMap();
}

From source file:com.infinities.skyport.distributed.impl.local.LocalCache.java

@Override
public void clear() {
    this.map = Maps.newConcurrentMap();
}

From source file:org.locationtech.geogig.storage.memory.HeapObjectStore.java

/**
 * Opens the database for use by GeoGig.
 *///from   w w w  .  j a va 2 s .c  om
@Override
public void open() {
    if (isOpen()) {
        return;
    }
    objects = Maps.newConcurrentMap();
}

From source file:com.davidbracewell.cli.CommandLineParser.java

/**
 * Default Constructor/*from  ww w .ja  va 2  s .  c o  m*/
 */
public CommandLineParser() {
    this.knownArguments = Maps.newTreeMap();
    this.helpDescriptions = Maps.newHashMap();
    this.aliases = Maps.newHashMap();
    this.setOptionMap = Maps.newConcurrentMap();
    addOption(CommandLineOption.HELP);
    addOption(CommandLineOption.CONFIG);
    addOption(CommandLineOption.CONFIG_EXPLAIN);
}

From source file:io.joynr.channel.ChannelUrlDirectoyImpl.java

@Inject
public ChannelUrlDirectoyImpl(@Named(CHANNELURL_INACTIVE_TIME_IN_MS) long inactiveTimeInMS) {
    channelurInactiveTimeInMS = inactiveTimeInMS;
    pendingDeferredsMap = Maps.newConcurrentMap();
    cleanupThread = new Thread(new Runnable() {
        @Override/* w w  w .j  av  a  2 s. c  om*/
        public void run() {
            cleanupRunnable();
        }
    });
    cleanupThread.start();
}

From source file:org.linagora.linshare.core.dao.jackRabbit.JackRabbitFileSystemMock.java

public JackRabbitFileSystemMock() {
    super();//from ww w  .  j a  v a  2s  .  co m
    this.files = Maps.newConcurrentMap();
    //      files.put("fdb962e8-52b6-44e6-b977-f5e638cbcfa8", "linshare-mailContainer.properties");
    //      files.put("b5edf244-8b39-4f6a-8caa-559bec48407a", "linshare-default.properties");
}