Class BlockingRouter


public class BlockingRouter extends OutputSection
This class implements a blocking router, i.e. a router which sends a job inside a region with constraints (the "blocking region"). The destination node has been already defined (the node each job has been redirected from), therefore no routing strategy is required.
Author:
Stefano Omini, Bertoli Marco
  • Constructor Details

    • BlockingRouter

      public BlockingRouter()
      Creates a new instance of Router which limits the number of jobs entering in the region with constraints. No routing strategy is required: the destination node is already known when the job arrives to the input station.
  • Method Details

    • process

      protected int process(NetMessage message) throws NetException
      Description copied from class: NodeSection
      This method should be overridden to implement a specific NetMessage processor.
      Specified by:
      process in class NodeSection
      Parameters:
      message - message to be processed.
      Returns:
      message processing result.
      Throws:
      NetException