Java Code Examples for io.vlingo.actors.Configuration#with()
The following examples show how to use
io.vlingo.actors.Configuration#with() .
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: CommonSupervisorsPlugin.java From vlingo-actors with Mozilla Public License 2.0 | 6 votes |
@Override public void buildWith(final Configuration configuration, final PluginProperties properties) { for (final DefinitionValues values : DefinitionValues.allDefinitionValues(properties)) { final ConfiguredSupervisor supervisor = new ConfiguredSupervisor( values.stageName, values.name, values.protocol, values.supervisor); if (supervisors.contains(supervisor)) { supervisors.remove(supervisor); } supervisors.add(supervisor); } configuration.with(this); }
Example 2
Source File: SharedRingBufferMailboxPlugin.java From vlingo-actors with Mozilla Public License 2.0 | 5 votes |
@Override public void buildWith(final Configuration configuration, final PluginProperties properties) { this.name = properties.name; this.defaultMailbox = properties.getBoolean("defaultMailbox", false); this.dispatcherThrottlingCount = properties.getInteger("dispatcherThrottlingCount", 1); this.fixedBackoff = properties.getInteger("fixedBackoff", 2); this.notifyOnSend = properties.getBoolean("notifyOnSend", false); this.ringSize = properties.getInteger("size", 65535); configuration.with(this); }
Example 3
Source File: ManyToOneConcurrentArrayQueuePlugin.java From vlingo-actors with Mozilla Public License 2.0 | 5 votes |
@Override public void buildWith(final Configuration configuration, final PluginProperties properties) { this.name = properties.name; this.defaultMailbox = properties.getBoolean("defaultMailbox", false); this.dispatcherThrottlingCount = properties.getInteger("dispatcherThrottlingCount", 1); this.fixedBackoff = properties.getInteger("fixedBackoff", 2); this.notifyOnSend = properties.getBoolean("notifyOnSend", false); this.ringSize = properties.getInteger("size", 65535); this.sendRetires = properties.getInteger("sendRetires", 10); configuration.with(this); }
Example 4
Source File: PooledCompletesPlugin.java From vlingo-actors with Mozilla Public License 2.0 | 5 votes |
@Override public void buildWith(final Configuration configuration, final PluginProperties properties) { this.name = properties.name; this.poolSize = properties.getInteger("pool", 10); this.mailbox = properties.getString("mailbox", null); configuration.with(this); }
Example 5
Source File: DefaultSupervisorOverridePlugin.java From vlingo-actors with Mozilla Public License 2.0 | 5 votes |
@Override public void buildWith(final Configuration configuration, final PluginProperties properties) { for (final DefinitionValues values : DefinitionValues.allDefinitionValues(properties)) { final ConfiguredSupervisor supervisor = new ConfiguredSupervisor( values.stageName, values.name, values.supervisor); supervisors.add(supervisor); } configuration.with(this); }
Example 6
Source File: ConcurrentQueueMailboxPlugin.java From vlingo-actors with Mozilla Public License 2.0 | 4 votes |
@Override public void build(final Configuration configuration) { configuration.with(defaultMailbox().numberOfDispatchersFactor(1.5f).dispatcherThrottlingCount(1)); }
Example 7
Source File: SharedRingBufferMailboxPlugin.java From vlingo-actors with Mozilla Public License 2.0 | 4 votes |
@Override public void build(final Configuration configuration) { configuration.with(ringSize(65535).fixedBackoff(2).notifyOnSend(false).dispatcherThrottlingCount(10)); }
Example 8
Source File: ManyToOneConcurrentArrayQueuePlugin.java From vlingo-actors with Mozilla Public License 2.0 | 4 votes |
@Override public void build(final Configuration configuration) { configuration.with(ringSize(65535).dispatcherThrottlingCount(1).fixedBackoff(2).notifyOnSend(false).sendRetires(10)); }
Example 9
Source File: PooledCompletesPlugin.java From vlingo-actors with Mozilla Public License 2.0 | 4 votes |
@Override public void build(final Configuration configuration) { configuration.with(mailbox("queueMailbox").poolSize(10)); }
Example 10
Source File: DefaultSupervisorOverridePlugin.java From vlingo-actors with Mozilla Public License 2.0 | 4 votes |
@Override public void build(final Configuration configuration) { configuration.with(supervisor("default", "overrideSupervisor", ConfiguredSupervisor.supervisorFrom("io.vlingo.actors.plugin.supervision.DefaultSupervisorOverride"))); }