Class ServerControlStore.ProtocolCursor

java.lang.Object
zeroecho.pki.server.ServerControlStore.ProtocolCursor
All Implemented Interfaces:
AutoCloseable
Enclosing class:
ServerControlStore

public static final class ServerControlStore.ProtocolCursor extends Object implements AutoCloseable
Thread-confined, closeable iterator over one immutable protocol snapshot.
  • Method Details

    • next

      Reads and validates the next record without retaining previously read records.
      Returns:
      next record, or empty at the end of the snapshot
      Throws:
      IllegalStateException - if closed or if a record cannot be validated
    • close

      public void close()
      Releases the cursor and snapshot; repeated close is harmless.
      Specified by:
      close in interface AutoCloseable