public class NSQCommand extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addBytes(byte[] bytes) |
static NSQCommand |
finish(byte[] messageID) |
List<byte[]> |
getData() |
String |
getLine() |
static NSQCommand |
identify(byte[] body) |
static NSQCommand |
multiPublish(String topic,
List<byte[]> bodies) |
static NSQCommand |
nop() |
static NSQCommand |
publish(String topic,
byte[] message) |
static NSQCommand |
ready(int rdy) |
static NSQCommand |
requeue(byte[] messageID,
int timeoutMillis) |
void |
setData(List<byte[]> data) |
void |
setLine(String line) |
static NSQCommand |
startClose() |
static NSQCommand |
subscribe(String topic,
String channel) |
String |
toString() |
static NSQCommand |
touch(byte[] messageID) |
public static final Charset ASCII
public void addBytes(byte[] bytes)
public String getLine()
public void setLine(String line)
public List<byte[]> getData()
public void setData(List<byte[]> data)
public static NSQCommand identify(byte[] body)
public static NSQCommand touch(byte[] messageID)
public static NSQCommand finish(byte[] messageID)
public static NSQCommand subscribe(String topic, String channel)
public static NSQCommand startClose()
public static NSQCommand requeue(byte[] messageID, int timeoutMillis)
public static NSQCommand nop()
public static NSQCommand ready(int rdy)
public static NSQCommand publish(String topic, byte[] message)
public static NSQCommand multiPublish(String topic, List<byte[]> bodies)
Copyright © 2017. All rights reserved.