net.engio.mbassy.bus.config.BusConfiguration Java Examples
The following examples show how to use
net.engio.mbassy.bus.config.BusConfiguration.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StreamingContainer.java From Bats with Apache License 2.0 | 5 votes |
protected StreamingContainer(String containerId, StreamingContainerUmbilicalProtocol umbilical) { this.jvmName = java.lang.management.ManagementFactory.getRuntimeMXBean().getName(); this.components = new HashSet<>(); this.eventBus = new MBassador<>(BusConfiguration.Default(1, 1, 1)); this.singletons = new HashMap<>(); this.nodeRequests = new ArrayList<>(); logger.debug("instantiated StramChild {}", containerId); this.umbilical = umbilical; this.containerId = containerId; }
Example #2
Source File: StreamingContainerManager.java From Bats with Apache License 2.0 | 5 votes |
public StreamingContainerManager(LogicalPlan dag, boolean enableEventRecording, Clock clock) { this.clock = clock; this.vars = new FinalVars(dag, clock.getTime()); poolExecutor = Executors.newFixedThreadPool(4); // setup prior to plan creation for event recording if (enableEventRecording) { this.eventBus = new MBassador<>(BusConfiguration.Default(1, 1, 1)); } this.plan = new PhysicalPlan(dag, this); this.journal = new Journal(this); init(enableEventRecording); }
Example #3
Source File: StreamingContainerManager.java From Bats with Apache License 2.0 | 5 votes |
private StreamingContainerManager(CheckpointState checkpointedState, boolean enableEventRecording) { this.vars = checkpointedState.finals; this.clock = new SystemClock(); poolExecutor = Executors.newFixedThreadPool(4); this.plan = checkpointedState.physicalPlan; this.eventBus = new MBassador<>(BusConfiguration.Default(1, 1, 1)); this.journal = new Journal(this); init(enableEventRecording); }
Example #4
Source File: StreamingContainer.java From attic-apex-core with Apache License 2.0 | 5 votes |
protected StreamingContainer(String containerId, StreamingContainerUmbilicalProtocol umbilical) { this.jvmName = java.lang.management.ManagementFactory.getRuntimeMXBean().getName(); this.components = new HashSet<>(); this.eventBus = new MBassador<>(BusConfiguration.Default(1, 1, 1)); this.singletons = new HashMap<>(); this.nodeRequests = new ArrayList<>(); logger.debug("instantiated StramChild {}", containerId); this.umbilical = umbilical; this.containerId = containerId; }
Example #5
Source File: StreamingContainerManager.java From attic-apex-core with Apache License 2.0 | 5 votes |
public StreamingContainerManager(LogicalPlan dag, boolean enableEventRecording, Clock clock) { this.clock = clock; this.vars = new FinalVars(dag, clock.getTime()); poolExecutor = Executors.newFixedThreadPool(4); // setup prior to plan creation for event recording if (enableEventRecording) { this.eventBus = new MBassador<>(BusConfiguration.Default(1, 1, 1)); } this.plan = new PhysicalPlan(dag, this); this.journal = new Journal(this); init(enableEventRecording); }
Example #6
Source File: StreamingContainerManager.java From attic-apex-core with Apache License 2.0 | 5 votes |
private StreamingContainerManager(CheckpointState checkpointedState, boolean enableEventRecording) { this.vars = checkpointedState.finals; this.clock = new SystemClock(); poolExecutor = Executors.newFixedThreadPool(4); this.plan = checkpointedState.physicalPlan; this.eventBus = new MBassador<>(BusConfiguration.Default(1, 1, 1)); this.journal = new Journal(this); init(enableEventRecording); }
Example #7
Source File: MessageBus.java From PeerWasp with MIT License | 5 votes |
private static BusConfiguration createBusConfiguration() { BusConfiguration config = new BusConfiguration(); // synchronous dispatching of events config.addFeature(Feature.SyncPubSub.Default()); // asynchronous dispatching of events config.addFeature(Feature.AsynchronousHandlerInvocation.Default()); config.addFeature(Feature.AsynchronousMessageDispatch.Default()); return config; }
Example #8
Source File: TaskModel.java From robovm-samples with Apache License 2.0 | 5 votes |
/** * Creates a new {@link TaskModel} backed by the specified * {@link TaskManager}. */ public TaskModel(TaskManager taskManager) { this.taskManager = Objects.requireNonNull(taskManager, "taskManager"); this.bus = new MBassador<Object>(new BusConfiguration() .addFeature(Feature.SyncPubSub.Default()) .addFeature(Feature.AsynchronousHandlerInvocation.Default()) .addFeature(Feature.AsynchronousMessageDispatch.Default())); }
Example #9
Source File: ClientModel.java From robovm-samples with Apache License 2.0 | 5 votes |
/** * Creates a new {@link ClientModel} backed by the specified * {@link ClientManager}. */ public ClientModel(ClientManager clientManager) { this.clientManager = Objects.requireNonNull(clientManager, "clientManager"); this.bus = new MBassador<Object>(new BusConfiguration() .addFeature(Feature.SyncPubSub.Default()) .addFeature(Feature.AsynchronousHandlerInvocation.Default()) .addFeature(Feature.AsynchronousMessageDispatch.Default())); }
Example #10
Source File: EventBus.java From Hive2Hive with MIT License | 5 votes |
private static BusConfiguration createBusConfiguration() { BusConfiguration config = new BusConfiguration(); // synchronous dispatching of events config.addFeature(Feature.SyncPubSub.Default()); // asynchronous dispatching of events config.addFeature(Feature.AsynchronousHandlerInvocation.Default()); config.addFeature(Feature.AsynchronousMessageDispatch.Default()); return config; }