Search in sources :

Example 1 with ResponseRedirectInterceptor

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);
}
Also used : OpenWireFormat(org.apache.activemq.openwire.OpenWireFormat) UdpTransport(org.apache.activemq.transport.udp.UdpTransport) CommandJoiner(org.apache.activemq.transport.CommandJoiner) ResponseRedirectInterceptor(org.apache.activemq.transport.udp.ResponseRedirectInterceptor)

Aggregations

OpenWireFormat (org.apache.activemq.openwire.OpenWireFormat)1 CommandJoiner (org.apache.activemq.transport.CommandJoiner)1 ResponseRedirectInterceptor (org.apache.activemq.transport.udp.ResponseRedirectInterceptor)1 UdpTransport (org.apache.activemq.transport.udp.UdpTransport)1