/** * Creates a snapshot of this {@link CopyOnWriteStateTable}, to be written in checkpointing. The snapshot integrity * is protected through copy-on-write from the {@link CopyOnWriteStateTable}. Users should call * {@link #releaseSnapshot(CopyOnWriteStateTableSnapshot)} after using the returned object. * * @return a snapshot from this {@link CopyOnWriteStateTable}, for checkpointing. */ @Override public CopyOnWriteStateTableSnapshot<K, N, S> createSnapshot() { return new CopyOnWriteStateTableSnapshot<>(this); }
/** * Creates a snapshot of this {@link CopyOnWriteStateTable}, to be written in checkpointing. The snapshot integrity * is protected through copy-on-write from the {@link CopyOnWriteStateTable}. Users should call * {@link #releaseSnapshot(CopyOnWriteStateTableSnapshot)} after using the returned object. * * @return a snapshot from this {@link CopyOnWriteStateTable}, for checkpointing. */ @Override public CopyOnWriteStateTableSnapshot<K, N, S> createSnapshot() { return new CopyOnWriteStateTableSnapshot<>(this); }
/** * Creates a snapshot of this {@link CopyOnWriteStateTable}, to be written in checkpointing. The snapshot integrity * is protected through copy-on-write from the {@link CopyOnWriteStateTable}. Users should call * {@link #releaseSnapshot(CopyOnWriteStateTableSnapshot)} after using the returned object. * * @return a snapshot from this {@link CopyOnWriteStateTable}, for checkpointing. */ @Nonnull @Override public CopyOnWriteStateTableSnapshot<K, N, S> stateSnapshot() { return new CopyOnWriteStateTableSnapshot<>(this); }
/** * Creates a snapshot of this {@link CopyOnWriteStateTable}, to be written in checkpointing. The snapshot integrity * is protected through copy-on-write from the {@link CopyOnWriteStateTable}. Users should call * {@link #releaseSnapshot(CopyOnWriteStateTableSnapshot)} after using the returned object. * * @return a snapshot from this {@link CopyOnWriteStateTable}, for checkpointing. */ @Nonnull @Override public CopyOnWriteStateTableSnapshot<K, N, S> stateSnapshot() { return new CopyOnWriteStateTableSnapshot<>(this); }