public class ExceptionAckCommand extends BackupAckCommand
The acknowledge represents an unsuccessful execution of the operation.
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
id, topologyId
cacheName, origin
Constructor and Description |
---|
ExceptionAckCommand() |
ExceptionAckCommand(ByteString cacheName) |
ExceptionAckCommand(ByteString cacheName,
long id,
Throwable throwable,
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 ExceptionAckCommand()
public ExceptionAckCommand(ByteString cacheName)
public ExceptionAckCommand(ByteString cacheName, long id, Throwable throwable, 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.