jetty.project/jetty-hazelcast
Vincent Latombe 090104d643
Allow to pass instances of ClientConfig and Config to Hazelcast data store factory (#8600)
* Allow to pass instances of ClientConfig and Config to Hazelcast data store factory

This increases flexibility when configuring it programmatically.

Patterns such as

HazelcastSessionDataStoreFactory f = new HazelcastSessionDataStoreFactory();
f.setOnlyClient(true);
f.setClientConfig(ClientConfig.load());

or

HazelcastSessionDataStoreFactory f = new HazelcastSessionDataStoreFactory();
f.setServerConfig(Config.load());

can then be used to configure Hazelcast according to standard Hazelcast
locations if needed.

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
2022-09-22 07:38:28 +10:00
..