|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.server.Backchannel
public class Backchannel
This is the backchannel to send "push" messages to the browser. Here be dragons. Would like to convert this to using actors one day. TODO: convert to executor architecture. Only one instance needed.
Method Summary | |
---|---|
List<PushResponse> |
await(String userName)
|
static Backchannel |
getInstance()
|
void |
publish(PushResponse message)
Push out a message to all currently connected clients |
void |
push(String userName,
PushResponse message)
Push out a message to the specific client |
List<PushResponse> |
subscribe()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Backchannel getInstance()
public List<PushResponse> subscribe()
public List<PushResponse> await(String userName) throws InterruptedException
InterruptedException
public void push(String userName, PushResponse message)
public void publish(PushResponse message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |