|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbacktype.storm.messaging.netty.Client
public class Client
| Method Summary | |
|---|---|
void |
close()
gracefully close this client. |
String |
name()
|
Iterator<TaskMessage> |
recv(int flags,
int clientId)
receive a batch message iterator (consists taskId and payload) |
void |
send(int taskId,
byte[] payload)
send a message with taskId and payload |
void |
send(Iterator<TaskMessage> msgs)
Enqueue task messages to be sent to server |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void send(Iterator<TaskMessage> msgs)
send in interface IConnectionpublic String name()
public void close()
close in interface IConnection
public Iterator<TaskMessage> recv(int flags,
int clientId)
IConnection
recv in interface IConnectionflags - 0: block, 1: non-block
public void send(int taskId,
byte[] payload)
IConnection
send in interface IConnectiontaskId - task ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||