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

com.datastax.driver.core.exceptions.OperationTimedOutException Maven / Gradle / Ivy

There is a newer version: 4.15.102
Show newest version
/*
 * Copyright DataStax, Inc.
 *
 * This software can be used solely with DataStax Enterprise. Please consult the license at
 * http://www.datastax.com/terms/datastax-dse-driver-license-terms
 */
package com.datastax.driver.core.exceptions;

import com.datastax.driver.core.EndPoint;
import com.datastax.driver.core.SocketOptions;

/**
 * Thrown on a client-side timeout, i.e. when the client didn't hear back from the server within
 * {@link SocketOptions#getReadTimeoutMillis()}.
 */
public class OperationTimedOutException extends ConnectionException {

  private static final long serialVersionUID = 0;

  public OperationTimedOutException(EndPoint endPoint) {
    super(endPoint, "Operation timed out");
  }

  public OperationTimedOutException(EndPoint endPoint, String msg) {
    super(endPoint, msg);
  }

  public OperationTimedOutException(EndPoint endPoint, String msg, Throwable cause) {
    super(endPoint, msg, cause);
  }

  @Override
  public OperationTimedOutException copy() {
    return new OperationTimedOutException(getEndPoint(), getRawMessage(), this);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy