-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(health): Add option to disable health indicator for MQ listeners (#…
…76)
- Loading branch information
1 parent
300a8ad
commit 39c9a40
Showing
5 changed files
with
71 additions
and
4 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
27 changes: 27 additions & 0 deletions
27
...va/co/com/bancolombia/commons/jms/mq/config/health/MQListenerDisabledHealthIndicator.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,27 @@ | ||
package co.com.bancolombia.commons.jms.mq.config.health; | ||
|
||
import co.com.bancolombia.commons.jms.api.exceptions.MQHealthListener; | ||
import jakarta.jms.JMSException; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.log4j.Log4j2; | ||
|
||
@Log4j2 | ||
@RequiredArgsConstructor | ||
public class MQListenerDisabledHealthIndicator implements MQHealthListener { | ||
|
||
@Override | ||
public void onInit(String listener) { | ||
// Do nothing | ||
} | ||
|
||
@Override | ||
public void onStarted(String listener) { | ||
// Do nothing | ||
} | ||
|
||
@Override | ||
public void onException(String listener, JMSException exception) { | ||
// Do nothing | ||
} | ||
|
||
} |
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