use of org.apache.avro.ipc.NettyTransceiver in project camel by apache.
the class AvroNettyConsumerTest method initializeTranceiver.
@Override
protected void initializeTranceiver() throws IOException {
transceiver = new NettyTransceiver(new InetSocketAddress("localhost", avroPort));
requestor = new SpecificRequestor(KeyValueProtocol.class, transceiver);
transceiverMessageInRoute = new NettyTransceiver(new InetSocketAddress("localhost", avroPortMessageInRoute));
requestorMessageInRoute = new SpecificRequestor(KeyValueProtocol.class, transceiverMessageInRoute);
transceiverForWrongMessages = new NettyTransceiver(new InetSocketAddress("localhost", avroPortForWrongMessages));
requestorForWrongMessages = new SpecificRequestor(KeyValueProtocol.class, transceiverForWrongMessages);
reflectTransceiver = new NettyTransceiver(new InetSocketAddress("localhost", avroPortReflection));
reflectRequestor = new ReflectRequestor(TestReflection.class, reflectTransceiver);
}
Aggregations