-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π :: Api-v0.0.4
- Loading branch information
Showing
97 changed files
with
1,260 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
DuDoong-Api/src/main/java/band/gosrock/api/eventHandlers/OrderEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package band.gosrock.api.eventHandlers; | ||
|
||
|
||
import band.gosrock.domain.common.events.order.DoneOrderEvent; | ||
import band.gosrock.domain.common.events.order.WithDrawOrderEvent; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.scheduling.annotation.Async; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.transaction.event.TransactionPhase; | ||
import org.springframework.transaction.event.TransactionalEventListener; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
@Slf4j | ||
public class OrderEventHandler { | ||
|
||
@Async | ||
@TransactionalEventListener( | ||
classes = DoneOrderEvent.class, | ||
phase = TransactionPhase.AFTER_COMMIT) | ||
public void handleDoneOrderEvent(DoneOrderEvent doneOrderEvent) { | ||
log.info(doneOrderEvent.getUuid() + "μ£Όλ¬Έ μν μλ£, ν°μΌ μμ±νμ"); | ||
} | ||
|
||
@Async | ||
@TransactionalEventListener( | ||
classes = WithDrawOrderEvent.class, | ||
phase = TransactionPhase.AFTER_COMMIT) | ||
public void handleRegisterUserEvent(WithDrawOrderEvent withDrawOrderEvent) { | ||
log.info(withDrawOrderEvent.getUuid() + "μ£Όλ¬Έ μν μ² ν , ν°μΌ μ κ±° νμ"); | ||
} | ||
} |
Oops, something went wrong.