Class GraphComputeCache

  • All Implemented Interfaces:
    VitamCache<java.lang.String,​org.bson.Document>

    public class GraphComputeCache
    extends AbstractVitamCache<java.lang.String,​org.bson.Document>
    This is a default implementation of VitamCache You can given any other implementation using for example VitamCollection as parameter in the constructor You can also implement with QueryDsl
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static VitamCache<java.lang.String,​org.bson.Document> getInstance()  
      protected org.bson.Document loadByKey​(java.lang.String key)  
      protected java.util.Map<java.lang.String,​org.bson.Document> loadByKeys​(java.lang.Iterable<? extends java.lang.String> keys)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadByKeys

        protected java.util.Map<java.lang.String,​org.bson.Document> loadByKeys​(java.lang.Iterable<? extends java.lang.String> keys)
        Specified by:
        loadByKeys in class AbstractVitamCache<java.lang.String,​org.bson.Document>
      • loadByKey

        protected org.bson.Document loadByKey​(java.lang.String key)
        Specified by:
        loadByKey in class AbstractVitamCache<java.lang.String,​org.bson.Document>
      • getInstance

        public static VitamCache<java.lang.String,​org.bson.Document> getInstance()