Class RegistrationLedger
java.lang.Object
com.ultikits.ultitools.manager.RegistrationLedger
Records the inverse operations for a plugin registration.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Deque<RegistrationLedger.Undo> private final String -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)privateRegistrationLedger(Deque<RegistrationLedger.Undo> reverseOperations, String step) -
Method Summary
Modifier and TypeMethodDescription(package private) static Throwable(package private) voidcommit()Discard rollback-only references once attachment has succeeded.(package private) RegistrationLedger(package private) void(package private) void(package private) void(package private) voidpushForDetach(String step, Runnable operation) (package private) voidpushForRollback(Runnable operation) (package private) voidDrains the ledger in reverse order, preserving the original failure as the primary cause.(package private) Throwable
-
Field Details
-
reverseOperations
-
step
-
-
Constructor Details
-
RegistrationLedger
RegistrationLedger() -
RegistrationLedger
-
-
Method Details
-
forStep
-
push
-
push
-
push
-
pushForRollback
-
pushForDetach
-
commit
void commit()Discard rollback-only references once attachment has succeeded. -
unwind
Drains the ledger in reverse order, preserving the original failure as the primary cause. -
unwind
-
attempt
-