Class ServerControlStore.ProtocolCursor
java.lang.Object
zeroecho.pki.server.ServerControlStore.ProtocolCursor
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ServerControlStore
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:
closein interfaceAutoCloseable
-