public class SyncClient
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
Constructor and Description |
---|
SyncClient(Workers workers) |
Modifier and Type | Method and Description |
---|---|
void |
run()
Main process by this client Go through each
queue, drain the queue and send/broadcast
|
void |
start()
Start the client
|
void |
stop()
Send StopSign to the execution threads
|
boolean |
submitCollectiveEvent(Event event)
Submit a collective event (broadcast)
|
boolean |
submitMessageEvent(Event event)
Submit a message event
|
public SyncClient(Workers workers)
public boolean submitMessageEvent(Event event)
event
- the event to submitpublic boolean submitCollectiveEvent(Event event)
event
- hasFuture
- public void start()
public void run()
run
in interface java.lang.Runnable
public void stop()