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(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.
use
SecurityConfig() , ClientSecurityConfig() for authentication |
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.
use
SecurityConfig() , ClientSecurityConfig() for authentication |
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 String getName()
public GroupConfig setName(String name)
name
- the name to set for the groupIllegalArgumentException
- if name is null
@Deprecated public String getPassword()
SecurityConfig()
, ClientSecurityConfig() for authentication@Deprecated public GroupConfig setPassword(String password)
SecurityConfig()
, ClientSecurityConfig() for authenticationpassword
- the password to set for the groupIllegalArgumentException
- if password is null
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.