Class DefaultPersistentSetBuilder<E>

  • All Implemented Interfaces:
    org.onosproject.persistence.PersistentSetBuilder<E>

    public class DefaultPersistentSetBuilder<E>
    extends java.lang.Object
    implements org.onosproject.persistence.PersistentSetBuilder<E>
    Default builder for persistent sets stored in the mapDB local database via the persistence service..
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PersistentSet<E> build()  
      org.onosproject.persistence.PersistentSetBuilder<E> withName​(java.lang.String name)  
      org.onosproject.persistence.PersistentSetBuilder<E> withSerializer​(org.onosproject.store.service.Serializer serializer)  
      • Methods inherited from class java.lang.Object

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

      • DefaultPersistentSetBuilder

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

      • withName

        public org.onosproject.persistence.PersistentSetBuilder<E> withName​(java.lang.String name)
        Specified by:
        withName in interface org.onosproject.persistence.PersistentSetBuilder<E>
      • withSerializer

        public org.onosproject.persistence.PersistentSetBuilder<E> withSerializer​(org.onosproject.store.service.Serializer serializer)
        Specified by:
        withSerializer in interface org.onosproject.persistence.PersistentSetBuilder<E>
      • build

        public PersistentSet<E> build()
        Specified by:
        build in interface org.onosproject.persistence.PersistentSetBuilder<E>