Package org.onosproject.persistence
Interface PersistentSetBuilder<E>
-
public interface PersistentSetBuilder<E>
The default interface for the persistent set builder for use with mapDB.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<E>
build()
Validates the set settings and then builds this map in the database.PersistentSetBuilder<E>
withName(String name)
Sets the name of this set.PersistentSetBuilder<E>
withSerializer(Serializer serializer)
Sets the serializer to be used to serialize this set, this is a required parameter.
-
-
-
Method Detail
-
withName
PersistentSetBuilder<E> withName(String name)
Sets the name of this set.- Parameters:
name
- the string name of this set- Returns:
- a persistent set builder with the name option now set
-
withSerializer
PersistentSetBuilder<E> withSerializer(Serializer serializer)
Sets the serializer to be used to serialize this set, this is a required parameter.- Parameters:
serializer
- the serializer to be used- Returns:
- a persistent set builder with the serializer set
-
-