Interface Router

All Superinterfaces:
BlendingReceiver, RunningDaemon
All Known Implementing Classes:
SimpleRouterImplementation

public interface Router extends BlendingReceiver, RunningDaemon
  • Method Details

    • addBlendingLayer

      boolean addBlendingLayer(Blender blendingLayer)

      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

      boolean removeBlendingLayer(Blender blendingLayer)

      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

      List<Blender> getAllBlendingLayer()

      Get a list of all currently known blender layers.

      Returns:
      a list of a registered blender layers
    • setAccountant

      Accountant setAccountant(Accountant accountant)

      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