T
- Command output type.public class Command<K,V,T> extends Object
CommandOutput
object.Modifier and Type | Field and Description |
---|---|
protected CommandArgs<K,V> |
args |
protected int |
completeAmount |
protected CommandOutput<K,V,T> |
output |
CommandType |
type |
Constructor and Description |
---|
Command(CommandType type,
CommandOutput<K,V,T> output,
CommandArgs<K,V> args,
boolean multi,
io.netty.util.concurrent.Promise<T> proimse)
Create a new command with the supplied type and args.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
complete() |
CommandOutput<K,V,T> |
getOutput()
Get the object that holds this command's output.
|
io.netty.util.concurrent.Promise<T> |
getPromise() |
protected static void |
writeInt(io.netty.buffer.ByteBuf buf,
int value)
Write the textual value of a positive integer to the supplied buffer.
|
public final CommandType type
protected CommandArgs<K,V> args
protected final CommandOutput<K,V,T> output
protected int completeAmount
public Command(CommandType type, CommandOutput<K,V,T> output, CommandArgs<K,V> args, boolean multi, io.netty.util.concurrent.Promise<T> proimse)
type
- Command type.output
- Command output.args
- Command args, if any.multi
- Flag indicating if MULTI active.public io.netty.util.concurrent.Promise<T> getPromise()
public CommandOutput<K,V,T> getOutput()
public void cancel()
public void complete()
protected static void writeInt(io.netty.buffer.ByteBuf buf, int value)
buf
- Buffer to write to.value
- Value to write.Copyright © 2014–2015. All rights reserved.