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:com.jivesoftware.sdk.api.entity.impl.memory.MemoryJiveInstanceProvider.java

public MemoryJiveInstanceProvider() {
    if (log.isTraceEnabled()) {
        log.trace("constructor called...");
    }
    memoryJiveInstanceStore = Maps.newConcurrentMap();
}

From source file:com.zaradai.kunzite.optimizer.data.dataset.driver.memory.InMemoryDataSetDriver.java

private Map<InputRow, Row> createDataMap() {
    return Maps.newConcurrentMap();
}

From source file:com.jivesoftware.sdk.api.entity.impl.memory.MemoryTileInstanceProvider.java

public MemoryTileInstanceProvider() {
    if (log.isTraceEnabled()) {
        log.trace("constructor called...");
    }
    memoryTileInstanceStore = Maps.newConcurrentMap();
}

From source file:nl.knaw.huygens.security.server.service.SessionService.java

public SessionService() {
    log.debug("SessionService created");
    sessions = Maps.newConcurrentMap();
    nextPurge = DateTime.now().plusMinutes(1);
}

From source file:org.ros.internal.message.new_style.ServiceLoader.java

public ServiceLoader() {
    searchPaths = Sets.newHashSet();
    serviceDefinitions = Maps.newConcurrentMap();
}

From source file:com.google.gerrit.httpd.plugins.WrappedContext.java

WrappedContext(Plugin plugin, String contextPath) {
    this.plugin = plugin;
    this.contextPath = contextPath;
    this.attributes = Maps.newConcurrentMap();
}

From source file:org.apache.gobblin.data.management.conversion.hive.watermarker.MultiKeyValueLongWatermark.java

public MultiKeyValueLongWatermark() {
    this.watermarks = Maps.newConcurrentMap();
}

From source file:com.facebook.buck.rules.BuildRuleResolver.java

@VisibleForTesting
public BuildRuleResolver(Set<? extends BuildRule> startingSet) {
    this.buildRuleIndex = Maps.newConcurrentMap();
    for (BuildRule buildRule : startingSet) {
        this.buildRuleIndex.put(buildRule.getBuildTarget(), buildRule);
    }//from w w w  .j  ava 2  s  .c  om
}

From source file:org.ros.internal.node.server.ParameterServer.java

public ParameterServer() {
    tree = Maps.newConcurrentMap();
    subscribers = Multimaps.synchronizedMultimap(HashMultimap.<GraphName, NodeIdentifier>create());
    masterName = GraphName.of("/master");
}

From source file:org.onosproject.store.mcast.impl.MulticastData.java

public MulticastData(ConnectPoint source) {
    this.source.set(checkNotNull(source, "Multicast source cannot be null."));
    this.sinks = Maps.newConcurrentMap();
    isEmpty.set(false);//from  ww w.  j a v  a2 s  .c  om
}