Package net.jodah.lyra

Examples of net.jodah.lyra.ConnectionOptions


      when(connectionFactory.newConnection(any(ExecutorService.class), any(Address[].class)))
          .thenReturn(connection);
    }

    if (options == null)
      options = new ConnectionOptions().withHost("test-host");
    options.withConnectionFactory(connectionFactory);
    if (config == null)
      config =
          new Config().withRetryPolicy(
              RetryPolicies.retryAlways().withInterval(Duration.millis(10))).withRecoveryPolicy(
View Full Code Here


  @Override
  public Firehose connect(StringInputRowParser firehoseParser) throws IOException
  {
    final StringInputRowParser stringParser = firehoseParser;

    ConnectionOptions lyraOptions = new ConnectionOptions(this.connectionFactory);
    Config lyraConfig = new Config()
        .withRecoveryPolicy(
            new RetryPolicy()
                .withMaxRetries(config.getMaxRetries())
                .withRetryInterval(Duration.seconds(config.getRetryIntervalSeconds()))
View Full Code Here

TOP

Related Classes of net.jodah.lyra.ConnectionOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.