use of org.apache.activemq.transport.udp.ResponseRedirectInterceptor in project activemq-artemis by apache.
the class UnreliableUdpTransportTest method createConsumer.
@Override
protected Transport createConsumer() throws Exception {
LOG.info("Consumer on port: " + consumerPort);
OpenWireFormat wireFormat = createWireFormat();
UdpTransport transport = new UdpTransport(wireFormat, consumerPort);
ReliableTransport reliableTransport = new ReliableTransport(transport, transport);
Replayer replayer = reliableTransport.getReplayer();
reliableTransport.setReplayStrategy(createReplayStrategy(replayer));
ResponseRedirectInterceptor redirectInterceptor = new ResponseRedirectInterceptor(reliableTransport, transport);
return new CommandJoiner(redirectInterceptor, wireFormat);
}
Aggregations