All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.rt.ReconnectAttempt Maven / Gradle / Ivy

The newest version!
package com.backendless.rt;

public class ReconnectAttempt
{
  private final int timeout;
  private final int attempt;
  private String error;

  public ReconnectAttempt( int timeout, int attempt, String error )
  {
    this( timeout, attempt );
    this.error = error;
  }

  public ReconnectAttempt( int timeout, int attempt )
  {
    this.timeout = timeout;
    this.attempt = attempt;
  }

  public int getTimeout()
  {
    return timeout;
  }

  public int getAttempt()
  {
    return attempt;
  }

  String getError()
  {
    return error;
  }

  @Override
  public String toString()
  {
    return "ReconnectAttempt{" + "timeout=" + timeout + ", attempt=" + attempt + ", error='" + error + '\'' + '}';
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy