Package net.messagevortex.router
Interface Router
- All Superinterfaces:
BlendingReceiver,RunningDaemon
- All Known Implementing Classes:
SimpleRouterImplementation
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddBlendingLayer(Blender blendingLayer) Adds a blender layer to the router infrastructure.Get the currently set accounting layer.Get a list of all currently known blender layers.booleanremoveBlendingLayer(Blender blendingLayer) Removes a previously added blender layer.setAccountant(Accountant accountant) Sets the accounting layer for the router layer.Methods inherited from interface net.messagevortex.blender.BlendingReceiver
gotMessageMethods inherited from interface net.messagevortex.RunningDaemon
shutdownDaemon, startDaemon, stopDaemon
-
Method Details
-
addBlendingLayer
Adds a blender layer to the router infrastructure.
- Parameters:
blendingLayer- the blender layer to be added- Returns:
- true if the blender layer has been accepted (only one blender layer per transport scheme is accepted)
-
removeBlendingLayer
Removes a previously added blender layer.
- Parameters:
blendingLayer- the blender layer to be removed- Returns:
- true if the blender layer was found (and removed)
-
getAllBlendingLayer
Get a list of all currently known blender layers.
- Returns:
- a list of a registered blender layers
-
setAccountant
Sets the accounting layer for the router layer.
- Parameters:
accountant- the accounting layer to be used- Returns:
- the previously set accounting layer
-
getAccountant
Accountant getAccountant()Get the currently set accounting layer.
- Returns:
- the accounting layer or null if none
-