Skip to content

Commit

Permalink
added java docs to pass style check
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer committed Oct 19, 2024
1 parent 106dbee commit d2602f9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public void init() {
this.listenerId = resultQueue.addItemListener(new ResultQueueListener(), true);
}

/**
* Removes the item listener from the Hazelcast result queue if the instance is active.
* Logs an error if Hazelcast is not running.
*/
@PreDestroy
public void removeListener() {
// check if Hazelcast is still active, before invoking this
Expand Down

0 comments on commit d2602f9

Please sign in to comment.