public static final class ChannelMetaDataDAO.ChannelOperation extends Object
Constructor and Description |
---|
ChannelOperation(String channelName,
String operationData,
UUID operationId,
String operationType,
UUID serverId)
Creates a channel operation object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getChannelName()
Returns the name of the channel that is affected by this operation.
|
String |
getOperationData()
Returns the data associated with this operation.
|
UUID |
getOperationId()
Returns the unique ID identifying this operation.
|
String |
getOperationType()
Returns the textual identifier defining the type of this operation.
|
UUID |
getServerId()
Returns the ID of the server that is affected by this operation.
|
int |
hashCode() |
String |
toString() |
public ChannelOperation(String channelName, String operationData, UUID operationId, String operationType, UUID serverId)
channelName
- name of the channel that is affected by this operation.
The name is a textual identifier that uniquely identifies
the channel within the archive.operationData
- data associated with this operation. The interpretation of
the data depends on the operationType
. May be
null
.operationId
- unique ID identifying this operation. The ID is mainly
used to allow updates or deletes of the operation in a way
that ensures that no other operation is modified
accidentally.operationType
- textual identifier defining the type of this operation.
The operation type also defines which kind of data is
expected for operationData
(if any). The
definition of types is left to the code using this object.serverId
- ID of the server that is affected by this operation. Most
likely, this is the server that is responsible for the
channel, but for some operations, a different server might
be involved.IllegalArgumentException
- if the channelName
is the empty string.NullPointerException
- if the channelName
, the
operationId
, the operationType
,
or the serverId
is null
.public String getChannelName()
public String getOperationData()
getOperationType()
). May be null
.null
if
no data has been stored for this operation.public UUID getOperationId()
public String getOperationType()
getOperationData()
(if any). The
definition of types is left to the code using this object.public UUID getServerId()
Copyright © 2011–2017 aquenos GmbH. All rights reserved.