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.ros.internal.message.new_style.MessageContext.java

MessageContext(String name) {
    this.name = name;
    this.fields = Maps.newConcurrentMap();
    this.orderedFields = Lists.newArrayList();
}

From source file:com.cloudera.hadoop.hdfs.nfs.metrics.InMemoryMetricsPublisher.java

public InMemoryMetricsPublisher() {
    mLatest = Maps.newConcurrentMap();
}

From source file:net.holmes.core.business.streaming.session.SessionDaoImpl.java

/**
 * Instantiates a new streaming session dao implementation.
 */
public SessionDaoImpl() {
    this.sessions = Maps.newConcurrentMap();
}

From source file:cn.yxffcode.freetookit.collection.ConcurrentSet.java

private ConcurrentSet() {
    map = Maps.newConcurrentMap();
}

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

private DefaultedClassMap(Class<? extends T> defaultClass) {
    this.defaultClass = defaultClass;
    map = Maps.newConcurrentMap();
}

From source file:fr.mtlx.odm.cache.ConcurrentMapCache.java

public ConcurrentMapCache() {
    cacheMap = Maps.newConcurrentMap();
}

From source file:org.onosproject.incubator.net.virtual.impl.intent.VirtualIntentInstallerRegistry.java

private VirtualIntentInstallerRegistry() {
    installers = Maps.newConcurrentMap();
}

From source file:qa.qcri.nadeef.core.pipeline.ExecutionContext.java

private ExecutionContext() {
    newTuples = Maps.newConcurrentMap();
}

From source file:org.axonframework.ext.eventstore.MemoryEventStore.java

/**
 *
 */
public MemoryEventStore() {
    m_storage = Maps.newConcurrentMap();
}

From source file:io.macgyver.core.auth.GrantedAuthoritiesTranslatorScriptHook.java

@Override
protected void translate(Collection<? extends GrantedAuthority> source,
        Collection<? extends GrantedAuthority> target) {

    try {/*from w  w w.  jav a2s  .  com*/
        Map<String, Object> m = Maps.newConcurrentMap();
        m.put("source", source);
        m.put("target", target);

        hookScriptManager.invokeHook("translateGrantedAuthorities", m);
    } catch (IOException e) {
        throw new MacGyverException("", e);
    }

}