use of org.infinispan.factories.annotations.Inject in project wildfly by wildfly.
the class ChannelFactoryTransport method setConfiguration.
@Inject
@Override
public void setConfiguration(GlobalConfiguration config) {
GlobalConfigurationBuilder builder = new GlobalConfigurationBuilder();
// WFLY-6685 Prevent Infinispan from registering channel mbeans
// The JGroups subsystem already does this
builder.globalJmxStatistics().read(config.globalJmxStatistics()).disable();
// ISPN-4755 workaround
TransportConfiguration transport = config.transport();
builder.transport().clusterName(transport.clusterName()).distributedSyncTimeout(transport.distributedSyncTimeout()).initialClusterSize(transport.initialClusterSize()).initialClusterTimeout(transport.initialClusterTimeout(), TimeUnit.MILLISECONDS).machineId(transport.machineId()).nodeName(transport.nodeName()).rackId(transport.rackId()).siteId(transport.siteId()).transport(transport.transport()).withProperties(transport.properties());
super.setConfiguration(builder.build());
}
Aggregations