public interface RollbackIfNotCompleteNotifier
DocumentContext objects, particularly
WriteDocumentContext, to allow writers to discard partially written
messages.| Modifier and Type | Method and Description |
|---|---|
default void |
rollbackIfNotComplete()
Rolls back the current operation if it is not complete.
|
default boolean |
writingIsComplete()
Checks if the current writing operation is complete.
|
default void rollbackIfNotComplete()
DocumentContext.isNotComplete()), this
method should attempt to roll back any changes made within the current
context, effectively discarding them. If rollback is not supported or not
applicable, an UnsupportedOperationException may be thrown.UnsupportedOperationException - if the rollback operation is not supporteddefault boolean writingIsComplete()
true
by default, indicating completion. Implementations should override this to
reflect the actual completion status of their write operation (for
example, the inverse of DocumentContext.isNotComplete()).Copyright © 2026 Chronicle Software Ltd. All rights reserved.