-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make event-listener bootstrap more robust if nats is not available
- Loading branch information
1 parent
16bb873
commit bdb2ea8
Showing
5 changed files
with
62 additions
and
9 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
29 changes: 29 additions & 0 deletions
29
...rc/main/java/com/github/thomasdarimont/keycloak/custom/eventpublishing/NoopPublisher.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,29 @@ | ||
package com.github.thomasdarimont.keycloak.custom.eventpublishing; | ||
|
||
import lombok.extern.jbosslog.JBossLog; | ||
|
||
import java.util.Map; | ||
|
||
@JBossLog | ||
public class NoopPublisher implements EventPublisher{ | ||
|
||
@Override | ||
public void publish(String topic, Object event) { | ||
// NOOP | ||
} | ||
|
||
@Override | ||
public Map<String, String> getOperationalInfo() { | ||
return Map.of(); | ||
} | ||
|
||
@Override | ||
public void init() { | ||
// NOOP | ||
} | ||
|
||
@Override | ||
public void close() { | ||
// NOOP | ||
} | ||
} |
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