List of usage examples for com.google.common.collect Maps newConcurrentMap
public static <K, V> ConcurrentMap<K, V> newConcurrentMap()
From source file:com.turn.sorcerer.pipeline.executable.ExecutablePipeline.java
protected ExecutablePipeline(int id, PipelineType pipelineType) { this.iterationNum = id; this.pipelineType = pipelineType; TaskType initTask = SorcererInjector.get().getTaskType(pipelineType.getInitTaskName()); if (taskCompletionMap == null) { taskCompletionMap = Maps.newConcurrentMap(); }//w w w . j a v a2 s . c o m if (taskGraph == null) { taskGraph = HashMultimap.create(); taskGraph.put(initTask.getName(), null); } // Initialize list of tasks in pipeline initTask(initTask); updatePipelineCompletion(); }
From source file:com.continuuity.loom.store.provisioner.MemoryPluginStore.java
public MemoryPluginStore() { this.store = Maps.newConcurrentMap(); }
From source file:com.jivesoftware.sdk.api.entity.impl.memory.MemoryWebhookInstanceProvider.java
public MemoryWebhookInstanceProvider() { if (log.isTraceEnabled()) { log.trace("constructor called..."); } memoryStorageInstanceStore = Maps.newConcurrentMap(); }
From source file:com.netflix.staash.mesh.db.memory.MemoryTopic.java
public MemoryTopic(String name) { this.name = name; rows = Maps.newConcurrentMap(); }
From source file:org.gradle.api.internal.artifacts.DefaultImmutableModuleIdentifierFactory.java
@Override public ModuleIdentifier module(String group, String name) { Map<String, ModuleIdentifier> byName = groupIdToModules.get(group); if (byName == null) { byName = groupIdToModules.get(group); if (byName == null) { byName = Maps.newConcurrentMap(); groupIdToModules.put(group, byName); }/*from w ww. j a v a 2 s.co m*/ } ModuleIdentifier moduleIdentifier = byName.get(name); if (moduleIdentifier == null) { moduleIdentifier = DefaultModuleIdentifier.newId(group, name); byName.put(name, moduleIdentifier); } return moduleIdentifier; }
From source file:com.pipeline.container.ByteBufferContainer.java
public ByteBufferContainer(Supplier<ByteBuffer> bufferSupplier) { this.buffer = bufferSupplier.get(); this.offsetTable = Maps.newConcurrentMap(); this.reader = new ContentReader(); this.writer = new ContentWriter(); }
From source file:org.onosproject.store.mcast.impl.MulticastData.java
private MulticastData() { this.sinks = Maps.newConcurrentMap(); isEmpty.set(true); }
From source file:org.axonframework.ext.hazelcast.store.HzEventStore.java
/** * c-tor/*from ww w . ja v a 2 s .c o m*/ * * @param hzInstance the Hazelcast instance */ public HzEventStore(final HazelcastInstance hzInstance) { m_hzInstance = hzInstance; m_domainEventStore = Maps.newConcurrentMap(); }
From source file:com.datatorrent.lib.bucket.ExpirableHdfsBucketStore.java
public ExpirableHdfsBucketStore() { super(); deletedFiles = Sets.newHashSet(); deleteSnapshot = Maps.newConcurrentMap(); }
From source file:org.ros.internal.message.definition.MessageDefinitionFileProvider.java
public MessageDefinitionFileProvider(StringFileProvider stringFileProvider) { this.stringFileProvider = stringFileProvider; messageIdentifiers = Maps.newConcurrentMap(); definitions = Maps.newConcurrentMap(); }