|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.bristleback.server.bristle.messages.MessageController
public final class MessageController
Message controller communicates with Bristle plugin and performs operations on message dispatcher and message senders.
It provides method to load MessageContainer object,
assign senders and dispatcher with server, and finally, export senders and start dispatching messages.
| Constructor Summary | |
|---|---|
MessageController()
|
|
| Method Summary | |
|---|---|
void |
assignServer(org.jwebsocket.api.WebSocketServer server)
Assigns server into message dispatcher and message senders. |
void |
exportSenders()
Exports senders, after invoking this method, senders can be obtained from MessageSendersExporter class. |
MessageContainer |
getMessageContainer()
Gets loaded message container. |
void |
loadMessageContainer(BristleConfiguration configuration)
Loads message container using plugin settings. |
void |
startDispatcher()
Starts dispatcher, invoking its startDispatching() method. |
void |
stopDispatcher()
Stops dispatching, invoking its stopDispatching() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageController()
| Method Detail |
|---|
public void loadMessageContainer(BristleConfiguration configuration)
MessageContainerResolver
implementation, based on plugin settings. From then, resolver object is used to load message container, which is then stored
in controller. It sets dispatcher in all loaded senders by invoking
MessageContainerResolver.assignDispatcherToSenders(MessageContainer) method.
configuration - Bristleback plugin configuration.public void assignServer(org.jwebsocket.api.WebSocketServer server)
server - jwebsocket server implementation.public void exportSenders()
MessageSendersExporter class.
public void startDispatcher()
public void stopDispatcher()
public MessageContainer getMessageContainer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||