Synchronously flushes database environment databases to stable storage. Calling this method is equivalent to forcing a checkpoint and setting {@link CheckpointConfig#setMinimizeRecoveryTime} to true.
A checkpoint has the side effect of flushing all preceding non-transactional write operations, as well as any preceding transactions that were committed with {@link Durability.SyncPolicy#NO_SYNC no-sync durability}. However, for best performance, checkpoints should be used only to bound recovery time. {@link #flushLog} can be used to write buffered data for durabilitypurposes.
@throws EnvironmentFailureException if an unexpected, internal orenvironment-wide failure occurs.
@throws IllegalStateException if this handle or the underlyingenvironment has been closed.