public final class GroupOperation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GroupOperation.GroupMsgErrorCode
Possible error codes for a failure of a group operation.
|
static class |
GroupOperation.Type |
Modifier and Type | Method and Description |
---|---|
GroupBuckets |
buckets()
Returns group buckets associated with the operation.
|
static GroupOperation |
createAddGroupOperation(GroupId groupId,
GroupDescription.Type groupType,
GroupBuckets buckets)
Creates ADD group operation object.
|
static GroupOperation |
createDeleteGroupOperation(GroupId groupId,
GroupDescription.Type groupType)
Creates DELETE group operation object.
|
static GroupOperation |
createFailedGroupOperation(GroupOperation groupOperation,
GroupOperation.GroupMsgErrorCode failureCode)
Creates failure group operation object by setting failure code
to inform the failure reason.
|
static GroupOperation |
createModifyGroupOperation(GroupId groupId,
GroupDescription.Type groupType,
GroupBuckets buckets)
Creates MODIFY group operation object.
|
boolean |
equals(java.lang.Object obj) |
GroupOperation.GroupMsgErrorCode |
failureCode()
Returns the failure code representing the failure of a group operation.
|
GroupId |
groupId()
Returns group identifier attribute of the operation.
|
GroupDescription.Type |
groupType()
Returns group type attribute of the operation.
|
int |
hashCode() |
GroupOperation.Type |
opType()
Returns group operation type.
|
public static GroupOperation createAddGroupOperation(GroupId groupId, GroupDescription.Type groupType, GroupBuckets buckets)
groupId
- group IdentifiergroupType
- type of the groupbuckets
- immutable list of group buckets to be part of grouppublic static GroupOperation createModifyGroupOperation(GroupId groupId, GroupDescription.Type groupType, GroupBuckets buckets)
groupId
- group IdentifiergroupType
- type of the groupbuckets
- immutable list of group buckets to be part of grouppublic static GroupOperation createDeleteGroupOperation(GroupId groupId, GroupDescription.Type groupType)
groupId
- group IdentifiergroupType
- type of the grouppublic static GroupOperation createFailedGroupOperation(GroupOperation groupOperation, GroupOperation.GroupMsgErrorCode failureCode)
groupOperation
- the original group operationfailureCode
- failure code for a failed group operationpublic GroupOperation.Type opType()
public GroupId groupId()
public GroupDescription.Type groupType()
public GroupBuckets buckets()
public GroupOperation.GroupMsgErrorCode failureCode()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object