- Monitor CircuitBreaker events
Object receiveEvent = new Object() {
@Subscribe
public void onEvent(CircutBreakerEvent circutBreakerEvent) {
//Get information from circutBreakerEvent
}
};
EventManager.getEventBus().register(receiveEvent);
- Listen for instance isolation events
Object receiveEvent = new Object() {
@Subscribe
public void onEvent(IsolationServerEvent isolationServerEvent) {
//Get information from isolationServerEvent
}
};
EventManager.getEventBus().register(receiveEvent);
- Both events are monitored
Object receiveEvent = new Object() {
@Subscribe
public void onEvent(AlarmEvent alarmEvent) {
//Get information from alarmEvent
}
};
EventManager.getEventBus().register(receiveEvent);