Class PersistedClusterStateService.Writer

java.lang.Object
org.elasticsearch.gateway.PersistedClusterStateService.Writer
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
PersistedClusterStateService

public static class PersistedClusterStateService.Writer extends Object implements Closeable
  • Method Details

    • isOpen

      public boolean isOpen()
    • writeFullStateAndCommit

      public void writeFullStateAndCommit(long currentTerm, ClusterState clusterState) throws IOException
      Overrides and commits the given current term and cluster state
      Throws:
      IOException
    • writeIncrementalTermUpdateAndCommit

      public void writeIncrementalTermUpdateAndCommit(long currentTerm, long lastAcceptedVersion, Version oldestIndexVersion) throws IOException
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException