storm.trident.state.map
Class CachedMap<T>

java.lang.Object
  extended by storm.trident.state.map.CachedMap<T>
Type Parameters:
T -
All Implemented Interfaces:
IBackingMap<T>

public class CachedMap<T>
extends Object
implements IBackingMap<T>

Useful to layer over a map that communicates with a database. you generally layer opaque map over this over your database store

Author:
nathan

Constructor Summary
CachedMap(IBackingMap<T> delegate, int cacheSize)
           
 
Method Summary
 List<T> multiGet(List<List<Object>> keys)
           
 void multiPut(List<List<Object>> keys, List<T> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedMap

public CachedMap(IBackingMap<T> delegate,
                 int cacheSize)
Method Detail

multiGet

public List<T> multiGet(List<List<Object>> keys)
Specified by:
multiGet in interface IBackingMap<T>

multiPut

public void multiPut(List<List<Object>> keys,
                     List<T> values)
Specified by:
multiPut in interface IBackingMap<T>


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.