Package com.franz.agraph.repository.repl
Interface DurabilityVisitor<T>
- Type Parameters:
T
- Type of values returned by the visitor.
public interface DurabilityVisitor<T>
Interface of objects used to process durability levels.
A durability level can be either an integer or a symbolic name, so a visitor interface is used handle both cases in a type-safe way.
-
Method Summary
Modifier and TypeMethodDescriptionVisit a symbolic durability level.visitInteger
(int numberOfInstances) Visit an explicit durability setting.
-
Method Details
-
visitInteger
Visit an explicit durability setting.- Parameters:
numberOfInstances
- Number of instances that must ingest a commit for it to be considered durable.- Returns:
- Result of the visit.
-
visitDurabilityLevel
Visit a symbolic durability level.- Parameters:
level
- Durability level name.- Returns:
- Result of the visit.
-