Package com.groiss.cluster.communication
Class Connector
java.lang.Object
com.groiss.cluster.communication.Connector
The facade to the cluster communication mechanism.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Removes a handler for receiving cluster messages.static void
deRegisterHandler
(Handler h, String msgType) Removes a handler for receiving cluster messages.static void
Publishes the message at commit time.static void
Publishes the Message immediately.static void
Registers a handler for receiving cluster messages.static void
registerHandler
(Handler h, String msgType) Registers a handler for receiving cluster messages.
-
Method Details
-
publish
Publishes the message at commit time.- Parameters:
m
- the message to publish
-
publishImmediate
Publishes the Message immediately.- Parameters:
m
- the message to publish- Throws:
Exception
-
registerHandler
Registers a handler for receiving cluster messages.- Parameters:
h
- the handler to registermsgType
- the type of message to handle
-
deRegisterHandler
Removes a handler for receiving cluster messages.- Parameters:
h
- the handler to registermsgType
- the type of message to handle
-
registerHandler
Registers a handler for receiving cluster messages.- Parameters:
h
- the handler to register
-
deRegisterHandler
Removes a handler for receiving cluster messages.- Parameters:
h
- the handler to deregister
-