DurabilityVisitor (agraph-java-client 5.0.4-SNAPSHOT API)
Description: declaration: package: com.franz.agraph.repository.repl, interface: DurabilityVisitor

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 Type
  Method
  Description
  `T`
  `visitDurabilityLevel(DurabilityLevel level)`
  Visit a symbolic durability level.
  `T`
  `visitInteger(int numberOfInstances)`
  Visit an explicit durability setting.

- ## Method Details

  - ### visitInteger

    T visitInteger(int numberOfInstances)
    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

    T visitDurabilityLevel(DurabilityLevel level)
    Visit a symbolic durability level.
    Parameters:
      `level` - Durability level name.
    Returns:
      Result of the visit.