public final class GroupConfig extends Object
With groups it is possible to create multiple clusters where each cluster has its own group and doesn't interfere with other clusters.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GROUP_NAME
Default group name.
|
static String |
DEFAULT_GROUP_PASSWORD
Default group password.
|
Constructor and Description |
---|
GroupConfig()
Creates a GroupConfig with default group-name and group-password.
|
GroupConfig(GroupConfig groupConfig)
Copy constructor
|
GroupConfig(String name)
Creates a GroupConfig with the given group-name and default group-password
|
GroupConfig(String name,
String password)
Creates a GroupConfig with the given group-name and group-password
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Gets the group name of the group.
|
String |
getPassword()
Deprecated.
since 3.11, password check is removed. Passwords are only checked in default LoginModule when Hazelcast
security is enabled (Enterprise edition only). |
int |
hashCode() |
GroupConfig |
setName(String name)
Sets the group name of the group.
|
GroupConfig |
setPassword(String password)
Deprecated.
since 3.11, password check is removed. Passwords are only checked in default LoginModule when Hazelcast
security is enabled (Enterprise edition only). |
String |
toString() |
public static final String DEFAULT_GROUP_PASSWORD
public static final String DEFAULT_GROUP_NAME
public GroupConfig()
public GroupConfig(String name)
name
- the name of the groupIllegalArgumentException
- if name is null
public GroupConfig(String name, String password)
name
- the name of the grouppassword
- the password of the groupIllegalArgumentException
- if name or password is null
public GroupConfig(GroupConfig groupConfig)
groupConfig
- to copypublic String getName()
public GroupConfig setName(String name)
name
- the name to set for the groupIllegalArgumentException
- if name is null
@Deprecated public String getPassword()
security
is enabled (Enterprise edition only).@Deprecated public GroupConfig setPassword(String password)
security
is enabled (Enterprise edition only).password
- the password to set for the groupIllegalArgumentException
- if password is null
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.