feat: jpa, messaging, notification, mongo, graphql 어댑터터 리펙토링
This commit is contained in:
+4
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user