Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled ClientStateListener to be used on FailoverClient
Due to nature of how failover client works, we don't allow different listeners to be registered at different client configs. Since ClientStateListener registers itself to the ClientConfig, this prevents it to be used via FailoverClient. The reasoning behind constructor register itself is to force the user to use this via config rather than registering it after client starts. So, sticking with the same decision we introduce another constructor which accepts ClientFailoverConfig and registers same listener(itself) to all the client configs. Also on the ClientStateListener I have ignored CLIENT_CHANGED_CLUSTER. This is rather a temporal event. We fire CLIENT_CONNECTED than CLIENT_CHANGED_CLUSTER, in those cases we want the current state to remain CLIENT_CONNECTED. Fixes #18351 EE PR: hazelcast/hazelcast-enterprise#4142
- Loading branch information
sancar
committed
Jul 16, 2021
1 parent
78f9033
commit e5fbd7b
Showing
2 changed files
with
71 additions
and
35 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