public class DefaultGroupDescription extends Object implements GroupDescription
GroupDescription.Type
Constructor and Description |
---|
DefaultGroupDescription(DeviceId deviceId,
GroupDescription.Type type,
GroupBuckets buckets)
Constructor to be used by group subsystem internal components.
|
DefaultGroupDescription(DeviceId deviceId,
GroupDescription.Type type,
GroupBuckets buckets,
GroupKey appCookie,
Integer groupId,
ApplicationId appId)
Constructor to be used by north bound applications.
|
DefaultGroupDescription(GroupDescription groupDesc)
Constructor to be used by group subsystem internal components.
|
Modifier and Type | Method and Description |
---|---|
GroupKey |
appCookie()
Returns application cookie associated with a group object.
|
ApplicationId |
appId()
Returns application identifier that has created this group object.
|
GroupBuckets |
buckets()
Returns group buckets of a group.
|
DeviceId |
deviceId()
Returns device identifier on which this group object is created.
|
boolean |
equals(Object obj) |
Integer |
givenGroupId()
Returns groupId passed in by application.
|
int |
hashCode() |
String |
toString() |
GroupDescription.Type |
type()
Returns type of a group object.
|
public DefaultGroupDescription(DeviceId deviceId, GroupDescription.Type type, GroupBuckets buckets, GroupKey appCookie, Integer groupId, ApplicationId appId)
deviceId
- device identifiertype
- type of the groupbuckets
- immutable list of group bucketappCookie
- immutable application cookie of type DefaultGroupKey
to be associated with the groupgroupId
- group identifierappId
- application idpublic DefaultGroupDescription(GroupDescription groupDesc)
groupDesc
- group description objectpublic DefaultGroupDescription(DeviceId deviceId, GroupDescription.Type type, GroupBuckets buckets)
deviceId
- device identifiertype
- type of the groupbuckets
- immutable list of group bucketpublic GroupDescription.Type type()
type
in interface GroupDescription
public DeviceId deviceId()
deviceId
in interface GroupDescription
public ApplicationId appId()
appId
in interface GroupDescription
public GroupKey appCookie()
appCookie
in interface GroupDescription
public GroupBuckets buckets()
buckets
in interface GroupDescription
public Integer givenGroupId()
givenGroupId
in interface GroupDescription