Search in sources :

Example 1 with TP

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));
    }
}
Also used : DefaultThreadFactory(org.jgroups.util.DefaultThreadFactory) LazyThreadFactory(org.jgroups.util.LazyThreadFactory) TP(org.jgroups.protocols.TP)

Aggregations

TP (org.jgroups.protocols.TP)1 DefaultThreadFactory (org.jgroups.util.DefaultThreadFactory)1 LazyThreadFactory (org.jgroups.util.LazyThreadFactory)1