com.datastax.driver.core.exceptions.OperationTimedOutException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
/*
* 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