GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.cassandra.meta
Class ColumnFamilyMetadataCache

java.lang.Object
  extended by org.openspaces.persistency.cassandra.meta.ColumnFamilyMetadataCache

public class ColumnFamilyMetadataCache
extends Object

A simple ConcurrentMap based cache to store ColumnFamilyMetadata in-memory.

Since:
9.1.1
Author:
Dan Kilman

Constructor Summary
ColumnFamilyMetadataCache()
           
 
Method Summary
 void addColumnFamilyMetadata(String typeName, ColumnFamilyMetadata metadata)
          Adds the given ColumnFamilyMetadata using the typeName as key.
 ConcurrentMap<String,ColumnFamilyMetadata> getColumnFamiliesMetadata()
           
 ColumnFamilyMetadata getColumnFamilyMetadata(String typeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnFamilyMetadataCache

public ColumnFamilyMetadataCache()
Method Detail

getColumnFamilyMetadata

public ColumnFamilyMetadata getColumnFamilyMetadata(String typeName)
Parameters:
typeName - The type name matching to requested ColumnFamilyMetadata
Returns:
the matching ColumnFamilyMetadata or null if not found.

addColumnFamilyMetadata

public void addColumnFamilyMetadata(String typeName,
                                    ColumnFamilyMetadata metadata)
Adds the given ColumnFamilyMetadata using the typeName as key. Will override entries if they already exist.

Parameters:
typeName - the type name.
metadata - the metadata.

getColumnFamiliesMetadata

public ConcurrentMap<String,ColumnFamilyMetadata> getColumnFamiliesMetadata()
Returns:
A map from type name to column family metadata of all currently in-memory ColumnFamilyMetadata.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.