-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e056de3
commit 2f9823d
Showing
6 changed files
with
76 additions
and
44 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
2 changes: 1 addition & 1 deletion
2
...in/src/main/java/br/com/ifsp/tickets/domain/shared/exceptions/TicketConsumeException.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
11 changes: 0 additions & 11 deletions
11
...in/src/main/java/br/com/ifsp/tickets/domain/shared/exceptions/TicketExpiredException.java
This file was deleted.
Oops, something went wrong.
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
20 changes: 20 additions & 0 deletions
20
...ucture/src/main/java/br/com/ifsp/tickets/infra/config/AsynchronousSpringEventsConfig.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,20 @@ | ||
package br.com.ifsp.tickets.infra.config; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.event.ApplicationEventMulticaster; | ||
import org.springframework.context.event.SimpleApplicationEventMulticaster; | ||
import org.springframework.core.task.SimpleAsyncTaskExecutor; | ||
|
||
@Configuration | ||
public class AsynchronousSpringEventsConfig { | ||
|
||
@Bean(name = "applicationEventMulticaster") | ||
public ApplicationEventMulticaster simpleApplicationEventMulticaster() { | ||
final SimpleApplicationEventMulticaster eventMulticaster = | ||
new SimpleApplicationEventMulticaster(); | ||
|
||
eventMulticaster.setTaskExecutor(new SimpleAsyncTaskExecutor()); | ||
return eventMulticaster; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -33,4 +33,5 @@ public void onApplicationEvent(@NotNull InfraAppEvent event) { | |
case DEBUG -> log.debug(message); | ||
} | ||
} | ||
|
||
} |