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()
Gets the password of the group.
|
int |
hashCode() |
GroupConfig |
setName(String name)
Sets the group name of the group.
|
GroupConfig |
setPassword(String password)
Sets the password for the group.
|
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
public String getPassword()
public GroupConfig setPassword(String password)
password
- the password to set for the groupIllegalArgumentException
- if password is null
Copyright © 2018 Hazelcast, Inc.. All rights reserved.