use of com.rabbitmq.stream.EnvironmentBuilder in project rabbitmq-stream-java-client by rabbitmq.
the class StreamProducerTest method init.
@BeforeEach
void init() {
EnvironmentBuilder environmentBuilder = Environment.builder().eventLoopGroup(eventLoopGroup).recoveryBackOffDelayPolicy(BackOffDelayPolicy.fixed(Duration.ofSeconds(2))).topologyUpdateBackOffDelayPolicy(BackOffDelayPolicy.fixed(Duration.ofSeconds(2)));
environmentBuilder.addressResolver(add -> localhost());
environment = environmentBuilder.build();
}
use of com.rabbitmq.stream.EnvironmentBuilder in project rabbitmq-stream-java-client by rabbitmq.
the class SuperStreamProducerTest method init.
@BeforeEach
void init(TestInfo info) throws Exception {
EnvironmentBuilder environmentBuilder = Environment.builder().eventLoopGroup(eventLoopGroup);
environmentBuilder.addressResolver(add -> localhost());
environment = environmentBuilder.build();
connection = new ConnectionFactory().newConnection();
superStream = TestUtils.streamName(info);
}
Aggregations