primaryEndpoint
The endpoint of the primary node in this node group (shard).
- Returns:
- The endpoint of the primary node in this node group (shard).
Serializable
, SdkPojo
, ToCopyableBuilder<NodeGroup.Builder,NodeGroup>
Represents a collection of cache nodes in a replication group. One node in the node group is the read/write primary node. All the other nodes are read-only Replica nodes.
static NodeGroup.Builder
builder()
final boolean
final boolean
equalsBySdkFields(Object obj)
final <T> Optional<T>
getValueForField(String fieldName,
Class<T> clazz)
final int
hashCode()
final boolean
final String
final List<NodeGroupMember>
final Endpoint
final Endpoint
static Class<? extends NodeGroup.Builder>
final String
slots()
final String
status()
creating
, available
,
modifying
, deleting
.final String
toString()
copy
The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for a node group.
The current state of this replication group - creating
, available
,
modifying
, deleting
.
creating
, available
,
modifying
, deleting
.The endpoint of the primary node in this node group (shard).
The endpoint of the replica nodes in this node group (shard).
The keyspace for this node group (shard).
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.A list containing information about individual nodes within the node group (shard).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNodeGroupMembers()
method.
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<NodeGroup.Builder,NodeGroup>
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared with