public class BackupMultiKeyAckCommand extends BackupAckCommand
The acknowledge signals a successful execution of a multi-key command, like PutMapCommand
. It contains the
segments ids of the updated keys.
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
id, topologyId
cacheName, origin
Constructor and Description |
---|
BackupMultiKeyAckCommand() |
BackupMultiKeyAckCommand(ByteString cacheName) |
BackupMultiKeyAckCommand(ByteString cacheName,
long id,
int segment,
int topologyId) |
Modifier and Type | Method and Description |
---|---|
void |
ack(CommandAckCollector ackCollector) |
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput) . |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput . |
isReturnValueExpected
getCacheName, getOrigin, setOrigin
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invokeAsync
canBlock, invoke, invokeAsync, isSuccessful
public static final byte COMMAND_ID
public BackupMultiKeyAckCommand()
public BackupMultiKeyAckCommand(ByteString cacheName)
public BackupMultiKeyAckCommand(ByteString cacheName, long id, int segment, int topologyId)
public void ack(CommandAckCollector ackCollector)
ack
in class BackupAckCommand
public byte getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
getCommandId
in class BackupAckCommand
public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.writeTo
in interface ReplicableCommand
writeTo
in class BackupAckCommand
output
- the stream.IOException
- if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.writeTo(ObjectOutput)
.readFrom
in interface ReplicableCommand
readFrom
in class BackupAckCommand
input
- the stream to read.IOException
- if an error occurred during the I/O.ClassNotFoundException
- if it tries to load an undefined class.public String toString()
toString
in class BackupAckCommand
Copyright © 2021 JBoss by Red Hat. All rights reserved.