Class DefaultPersistentMapBuilder<K,​V>

  • All Implemented Interfaces:
    org.onosproject.persistence.PersistentMapBuilder<K,​V>

    public class DefaultPersistentMapBuilder<K,​V>
    extends Object
    implements org.onosproject.persistence.PersistentMapBuilder<K,​V>
    Default builder for persistent maps stored in the mapDB local database via the persistence service.
    • Constructor Detail

      • DefaultPersistentMapBuilder

        public DefaultPersistentMapBuilder​(org.mapdb.DB localDB)
    • Method Detail

      • withName

        public org.onosproject.persistence.PersistentMapBuilder<K,​V> withName​(String name)
        Specified by:
        withName in interface org.onosproject.persistence.PersistentMapBuilder<K,​V>
      • withSerializer

        public org.onosproject.persistence.PersistentMapBuilder<K,​V> withSerializer​(org.onosproject.store.service.Serializer serializer)
        Specified by:
        withSerializer in interface org.onosproject.persistence.PersistentMapBuilder<K,​V>
      • build

        public Map<K,​V> build()
        Specified by:
        build in interface org.onosproject.persistence.PersistentMapBuilder<K,​V>