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, topologyIdcacheName, 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. |
isReturnValueExpectedgetCacheName, getOrigin, setOriginclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinvokeAsynccanBlock, invoke, invokeAsync, isSuccessfulpublic 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 BackupAckCommandpublic byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class BackupAckCommandpublic void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.writeTo in interface ReplicableCommandwriteTo in class BackupAckCommandoutput - the stream.IOException - if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommandReplicableCommand.writeTo(ObjectOutput).readFrom in interface ReplicableCommandreadFrom in class BackupAckCommandinput - 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 BackupAckCommandCopyright © 2022 JBoss by Red Hat. All rights reserved.