com.hazelcast.multimap.impl
Class MultiMapContainer

java.lang.Object
  extended by com.hazelcast.multimap.impl.MultiMapContainer

public class MultiMapContainer
extends Object

Multi-map container.


Field Summary
protected  MultiMapConfig config
           
protected  ConcurrentMap<Data,MultiMapWrapper> multiMapWrappers
           
protected  String name
           
protected  NodeEngine nodeEngine
           
 
Constructor Summary
MultiMapContainer(String name, MultiMapService service, int partitionId)
           
 
Method Summary
 void access()
           
 boolean canAcquireLock(Data dataKey, String caller, long threadId)
           
 int clear()
           
 boolean containsEntry(boolean binary, Data key, Data value)
           
 boolean containsKey(Data key)
           
 boolean containsValue(boolean binary, Data value)
           
 Map<Data,Collection<MultiMapRecord>> copyCollections()
           
 void delete(Data dataKey)
           
 void destroy()
           
 boolean extendLock(Data key, String caller, long threadId, long ttl)
           
 boolean forceUnlock(Data key)
           
 MultiMapConfig getConfig()
           
 long getCreationTime()
           
 long getLastAccessTime()
           
 long getLastUpdateTime()
           
 long getLockedCount()
           
 String getLockOwnerInfo(Data dataKey)
           
 MultiMapWrapper getMultiMapWrapperOrNull(Data dataKey)
           
 ConcurrentMap<Data,MultiMapWrapper> getMultiMapWrappers()
           
 MultiMapWrapper getOrCreateMultiMapWrapper(Data dataKey)
           
 boolean isLocked(Data dataKey)
           
 boolean isTransactionallyLocked(Data key)
           
 Set<Data> keySet()
           
 long nextId()
           
 Collection<MultiMapRecord> remove(Data dataKey, boolean copyOf)
           
 int size()
           
 boolean txnLock(Data key, String caller, long threadId, long ttl)
           
 boolean unlock(Data key, String caller, long threadId)
           
 void update()
           
 Collection<MultiMapRecord> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected final String name

nodeEngine

protected final NodeEngine nodeEngine

config

protected final MultiMapConfig config

multiMapWrappers

protected final ConcurrentMap<Data,MultiMapWrapper> multiMapWrappers
Constructor Detail

MultiMapContainer

public MultiMapContainer(String name,
                         MultiMapService service,
                         int partitionId)
Method Detail

canAcquireLock

public boolean canAcquireLock(Data dataKey,
                              String caller,
                              long threadId)

isLocked

public boolean isLocked(Data dataKey)

isTransactionallyLocked

public boolean isTransactionallyLocked(Data key)

txnLock

public boolean txnLock(Data key,
                       String caller,
                       long threadId,
                       long ttl)

unlock

public boolean unlock(Data key,
                      String caller,
                      long threadId)

forceUnlock

public boolean forceUnlock(Data key)

extendLock

public boolean extendLock(Data key,
                          String caller,
                          long threadId,
                          long ttl)

getLockOwnerInfo

public String getLockOwnerInfo(Data dataKey)

nextId

public long nextId()

delete

public void delete(Data dataKey)

remove

public Collection<MultiMapRecord> remove(Data dataKey,
                                         boolean copyOf)

keySet

public Set<Data> keySet()

values

public Collection<MultiMapRecord> values()

containsKey

public boolean containsKey(Data key)

containsEntry

public boolean containsEntry(boolean binary,
                             Data key,
                             Data value)

containsValue

public boolean containsValue(boolean binary,
                             Data value)

copyCollections

public Map<Data,Collection<MultiMapRecord>> copyCollections()

size

public int size()

clear

public int clear()

destroy

public void destroy()

access

public void access()

update

public void update()

getLastAccessTime

public long getLastAccessTime()

getLastUpdateTime

public long getLastUpdateTime()

getCreationTime

public long getCreationTime()

getLockedCount

public long getLockedCount()

getOrCreateMultiMapWrapper

public MultiMapWrapper getOrCreateMultiMapWrapper(Data dataKey)

getMultiMapWrapperOrNull

public MultiMapWrapper getMultiMapWrapperOrNull(Data dataKey)

getMultiMapWrappers

public ConcurrentMap<Data,MultiMapWrapper> getMultiMapWrappers()

getConfig

public MultiMapConfig getConfig()


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.