Class InternalTransporter

All Implemented Interfaces:
MetricConstants, MoleculerLifecycle

public class InternalTransporter extends Transporter
This is a Transporter that can connect multiple ServiceBrokers running in the same JVM. The calls are made in separate Threads, so call timeouts can be used. Used primarily for testing Serializers. Usage:
ServiceBroker broker1 = ServiceBroker.builder().nodeID("node1").transporter(new InternalTransporter()).build();
ServiceBroker broker2 = ServiceBroker.builder().nodeID("node2").transporter(new InternalTransporter()).build();
See Also: