public static class Kestrel.Client extends org.apache.thrift7.TServiceClient implements Kestrel.Iface
Modifier and Type | Class and Description |
---|---|
static class |
Kestrel.Client.Factory |
Constructor and Description |
---|
Client(org.apache.thrift7.protocol.TProtocol prot) |
Client(org.apache.thrift7.protocol.TProtocol iprot,
org.apache.thrift7.protocol.TProtocol oprot) |
Modifier and Type | Method and Description |
---|---|
int |
abort(String queue_name,
Set<Long> ids) |
int |
confirm(String queue_name,
Set<Long> ids) |
void |
delete_queue(String queue_name) |
void |
flush_all_queues() |
void |
flush_queue(String queue_name) |
String |
get_version() |
List<Item> |
get(String queue_name,
int max_items,
int timeout_msec,
int auto_abort_msec) |
QueueInfo |
peek(String queue_name) |
int |
put(String queue_name,
List<ByteBuffer> items,
int expiration_msec) |
int |
recv_abort() |
int |
recv_confirm() |
void |
recv_delete_queue() |
void |
recv_flush_all_queues() |
void |
recv_flush_queue() |
String |
recv_get_version() |
List<Item> |
recv_get() |
QueueInfo |
recv_peek() |
int |
recv_put() |
void |
send_abort(String queue_name,
Set<Long> ids) |
void |
send_confirm(String queue_name,
Set<Long> ids) |
void |
send_delete_queue(String queue_name) |
void |
send_flush_all_queues() |
void |
send_flush_queue(String queue_name) |
void |
send_get_version() |
void |
send_get(String queue_name,
int max_items,
int timeout_msec,
int auto_abort_msec) |
void |
send_peek(String queue_name) |
void |
send_put(String queue_name,
List<ByteBuffer> items,
int expiration_msec) |
public Client(org.apache.thrift7.protocol.TProtocol prot)
public Client(org.apache.thrift7.protocol.TProtocol iprot, org.apache.thrift7.protocol.TProtocol oprot)
public int put(String queue_name, List<ByteBuffer> items, int expiration_msec) throws org.apache.thrift7.TException
put
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_put(String queue_name, List<ByteBuffer> items, int expiration_msec) throws org.apache.thrift7.TException
org.apache.thrift7.TException
public int recv_put() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public List<Item> get(String queue_name, int max_items, int timeout_msec, int auto_abort_msec) throws org.apache.thrift7.TException
get
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_get(String queue_name, int max_items, int timeout_msec, int auto_abort_msec) throws org.apache.thrift7.TException
org.apache.thrift7.TException
public List<Item> recv_get() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public int confirm(String queue_name, Set<Long> ids) throws org.apache.thrift7.TException
confirm
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_confirm(String queue_name, Set<Long> ids) throws org.apache.thrift7.TException
org.apache.thrift7.TException
public int recv_confirm() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public int abort(String queue_name, Set<Long> ids) throws org.apache.thrift7.TException
abort
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_abort(String queue_name, Set<Long> ids) throws org.apache.thrift7.TException
org.apache.thrift7.TException
public int recv_abort() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public QueueInfo peek(String queue_name) throws org.apache.thrift7.TException
peek
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_peek(String queue_name) throws org.apache.thrift7.TException
org.apache.thrift7.TException
public QueueInfo recv_peek() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public void flush_queue(String queue_name) throws org.apache.thrift7.TException
flush_queue
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_flush_queue(String queue_name) throws org.apache.thrift7.TException
org.apache.thrift7.TException
public void recv_flush_queue() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public void flush_all_queues() throws org.apache.thrift7.TException
flush_all_queues
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_flush_all_queues() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public void recv_flush_all_queues() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public void delete_queue(String queue_name) throws org.apache.thrift7.TException
delete_queue
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_delete_queue(String queue_name) throws org.apache.thrift7.TException
org.apache.thrift7.TException
public void recv_delete_queue() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public String get_version() throws org.apache.thrift7.TException
get_version
in interface Kestrel.Iface
org.apache.thrift7.TException
public void send_get_version() throws org.apache.thrift7.TException
org.apache.thrift7.TException
public String recv_get_version() throws org.apache.thrift7.TException
org.apache.thrift7.TException