use of org.jgroups.protocols.TP in project wildfly by wildfly.
the class TransportConfigurator method afterCreation.
@Override
public void afterCreation(Protocol protocol) throws Exception {
if (protocol instanceof TP) {
TP transport = (TP) protocol;
ClassLoader loader = JChannelFactory.class.getClassLoader();
transport.setThreadFactory(new ClassLoaderThreadFactory(new DefaultThreadFactory("", false), loader));
transport.setTimerThreadFactory(new ClassLoaderThreadFactory(new LazyThreadFactory("Timer", true, true), loader));
transport.setDefaultThreadPoolThreadFactory(new ClassLoaderThreadFactory(new DefaultThreadFactory("Incoming", false, true), loader));
transport.setOOBThreadPoolThreadFactory(new ClassLoaderThreadFactory(new DefaultThreadFactory("OOB", false, true), loader));
transport.setInternalThreadPoolThreadFactory(new ClassLoaderThreadFactory(new DefaultThreadFactory("INT", false, true), loader));
}
}
Aggregations