org.hyperledger.fabric.gateway

## 类 DefaultCheckpointers

- java.lang.Object
- - org.hyperledger.fabric.gateway.DefaultCheckpointers

-     public final class DefaultCheckpointers
      extends Object

  Provides static factory methods used to create instances of default `Checkpointer` implementations.

- - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static Checkpointer` | `file(Path path)` Checkpointer implementation that persists state to a given file.

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### file

          public static Checkpointer file(Path path)
                                   throws IOException

      Checkpointer implementation that persists state to a given file. If the file exists, it must contain valid persistent checkpoint state. If the file does not exist, the checkpointer will be created with default initial state, which will start listening from the current block.

      The checkpointer will attempt to obtain an exclusive lock on the file so there can only be a single checkpointer instance for a given file at any point in time.

      参数:
        `path` - A file path.
      返回:
        A checkpointer.
      抛出:
        `IOException` - if an error occurs creating the checkpointer.

Copyright © 2023. All rights reserved.