public final class RemoveChannelCommand extends ArchiveConfigurationCommand
ArchiveConfigurationService
, but it might also be sent over the
network before actually being processed.ArchiveConfigurationCommand.Type
Constructor and Description |
---|
RemoveChannelCommand(String channelName,
UUID expectedServerId)
Creates a "remove channel" command.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getChannelName()
Returns the name of the channel that shall be removed.
|
ArchiveConfigurationCommand.Type |
getCommandType()
Returns the type of the actual command type.
|
UUID |
getExpectedServerId()
Returns the ID of the server which is expected to currently own the
channel.
|
int |
hashCode() |
String |
toString() |
public RemoveChannelCommand(String channelName, UUID expectedServerId)
expectedServerId
does not match the actual ID of the server
that currently owns the channel, the operation will fail.channelName
- name of the channel to be removed.expectedServerId
- if not null
, the channel is only removed if it is
currently registered with the specified server.IllegalArgumentException
- if channelName
is empty.NullPointerException
- if channelName
is null
.public ArchiveConfigurationCommand.Type getCommandType()
ArchiveConfigurationCommand
ArchiveConfigurationCommand
class or the ArchiveConfigurationCommand.Type
enum
for a list of types. The return value is never null
.getCommandType
in class ArchiveConfigurationCommand
public String getChannelName()
null
or the empty string.public UUID getExpectedServerId()
null
the channel will be removed regardless of
which server currently owns the channel. If not null
, the
remove operation will fail if the channel is currently registered with a
different server than the specified one.null
if the channel should be removed regardless of
the server that currently owns the channel.Copyright © 2011–2017 aquenos GmbH. All rights reserved.