Class DedicatedExecutorProtocolHolderFactory

java.lang.Object
pt.unl.fct.di.novasys.babel2.core.DedicatedExecutorProtocolHolderFactory
All Implemented Interfaces:
BabelProtocolHolderFactory

public final class DedicatedExecutorProtocolHolderFactory extends Object implements BabelProtocolHolderFactory
Factory for creating DedicatedExecutorProtocolHolder instances.

Each protocol registered with this factory receives a dedicated single-threaded executor and an isolated event queue of the specified capacity.

  • Constructor Details

    • DedicatedExecutorProtocolHolderFactory

      public DedicatedExecutorProtocolHolderFactory(int maxQueueCapacity)
      Constructs a factory with the specified maximum queue capacity per protocol.
      Parameters:
      maxQueueCapacity - the maximum number of events permitted in each protocol's queue
  • Method Details