Skip to content

Commit

Permalink
Merge pull request #10 from maheshshelke/Issue_9
Browse files Browse the repository at this point in the history
Issue #9: Fixed formatting in Application.java
  • Loading branch information
RobWin authored Jun 24, 2024
2 parents 9935428 + cdb0ae4 commit 8a873b7
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/main/java/io/github/robwin/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,24 @@ public void onEntryReplacedEvent(EntryReplacedEvent<CircuitBreaker> entryReplace
};
}

@Bean
public RegistryEventConsumer<Retry> myRetryRegistryEventConsumer() {

return new RegistryEventConsumer<Retry>() {
@Override
public void onEntryAddedEvent(EntryAddedEvent<Retry> entryAddedEvent) {
entryAddedEvent.getAddedEntry().getEventPublisher().onEvent(event -> LOG.info(event.toString()));
}
@Bean
public RegistryEventConsumer<Retry> myRetryRegistryEventConsumer() {

@Override
public void onEntryRemovedEvent(EntryRemovedEvent<Retry> entryRemoveEvent) {
return new RegistryEventConsumer<Retry>() {
@Override
public void onEntryAddedEvent(EntryAddedEvent<Retry> entryAddedEvent) {
entryAddedEvent.getAddedEntry().getEventPublisher().onEvent(event -> LOG.info(event.toString()));
}

}
@Override
public void onEntryRemovedEvent(EntryRemovedEvent<Retry> entryRemoveEvent) {

@Override
public void onEntryReplacedEvent(EntryReplacedEvent<Retry> entryReplacedEvent) {
}

}
};
}
@Override
public void onEntryReplacedEvent(EntryReplacedEvent<Retry> entryReplacedEvent) {

}
};
}
}

0 comments on commit 8a873b7

Please sign in to comment.