public abstract class AbstractLocalCommand extends AbstractFlagAffectedCommand implements LocalCommand
VisitableCommand.LoadType
Constructor and Description |
---|
AbstractLocalCommand() |
Modifier and Type | Method and Description |
---|---|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
VisitableCommand.LoadType |
loadType() |
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput) . |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput . |
getFlagsBitSet, hasSameFlags, printFlags, setFlagsBitSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlags
acceptVisitor, init
canBlock, invoke, invokeAsync, isSuccessful, setOrigin
public byte getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
public final void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.writeTo
in interface ReplicableCommand
output
- the stream.IOException
- if an error occurred during the I/O.public final void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.writeTo(ObjectOutput)
.readFrom
in interface ReplicableCommand
input
- the stream to read.IOException
- if an error occurred during the I/O.ClassNotFoundException
- if it tries to load an undefined class.public boolean isReturnValueExpected()
ReplicableCommand
ResponseGenerator
may choose to simply return null to save on marshalling
costs.isReturnValueExpected
in interface ReplicableCommand
public VisitableCommand.LoadType loadType()
loadType
in interface VisitableCommand
Copyright © 2021 JBoss by Red Hat. All rights reserved.