org.infinispan.hotrod.exceptions.TransportException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-hotrod-jakarta Show documentation
Show all versions of infinispan-hotrod-jakarta Show documentation
Infinispan Hot Rod Client Jakarta EE
package org.infinispan.hotrod.exceptions;
import java.net.SocketAddress;
/**
* Indicates a communication exception with the Hot Rod server: e.g. TCP connection is broken while reading a response
* from the server.
*
* @since 14.0
*/
public class TransportException extends HotRodClientException {
private final SocketAddress serverAddress;
public TransportException(String message, SocketAddress serverAddress) {
super(message);
this.serverAddress = serverAddress;
}
public TransportException(String message, Throwable cause, SocketAddress serverAddress) {
super(message, cause);
this.serverAddress = serverAddress;
}
public TransportException(Throwable cause, SocketAddress serverAddress) {
super(cause);
this.serverAddress = serverAddress;
}
public SocketAddress getServerAddress() {
return serverAddress;
}
}