Polish "Add service connection support for Hazelcast"

See gh-42416
This commit is contained in:
Moritz Halbritter
2024-09-26 14:30:42 +02:00
parent cee7439dbe
commit 33def6d6b4
9 changed files with 85 additions and 42 deletions

View File

@@ -33,4 +33,13 @@ public final class HazelcastContainer extends GenericContainer<HazelcastContaine
addExposedPorts(DEFAULT_PORT);
}
/**
* Sets the cluster name.
* @param clusterName the cluster name
* @return this instance
*/
public HazelcastContainer withClusterName(String clusterName) {
return withEnv("HZ_CLUSTERNAME", clusterName);
}
}