feat: jpa, messaging, notification, mongo, graphql 어댑터터 리펙토링

This commit is contained in:
DongHyeonka
2026-08-18 10:59:56 +09:00
parent f56dd3e4eb
commit 16e33ce986
24 changed files with 1343 additions and 37 deletions
@@ -65,14 +65,14 @@ public final class TransactionalInboxHandler<T> implements IdempotentMessageHand
} catch (Exception failure) {
// Wrapped, not swallowed: the transaction runner has to see a throw to roll the
// reservation back along with the effect.
throw new ActionFailed(failure);
throw new ActionFailedException(failure);
}
return InboxResult.APPLIED;
});
return CompletableFuture.completedFuture(
outcome.processed() ? HandleResult.success() : duplicateIsSuccess());
} catch (ActionFailed failure) {
} catch (ActionFailedException failure) {
return CompletableFuture.completedFuture(retryable(failure.getCause()));
}
}
@@ -93,11 +93,11 @@ public final class TransactionalInboxHandler<T> implements IdempotentMessageHand
}
/** Carries the action's checked exception out through the transaction runner. */
private static final class ActionFailed extends RuntimeException {
private static final class ActionFailedException extends RuntimeException {
private static final long serialVersionUID = 1L;
private ActionFailed(Throwable cause) {
private ActionFailedException(Throwable cause) {
super(cause);
}
}