org.infinispan.hotrod.exceptions.RemoteIllegalLifecycleStateException 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;
/**
* This exception is thrown when the remote cache or cache manager does not
* have the right lifecycle state for operations to be called on it. Situations
* like this include when the cache is stopping or is stopped, when the cache
* manager is stopped...etc.
*
* @since 14.0
*/
public class RemoteIllegalLifecycleStateException extends HotRodClientException {
private final SocketAddress serverAddress;
public RemoteIllegalLifecycleStateException(String msgFromServer, long messageId, short status, SocketAddress serverAddress) {
super(msgFromServer, messageId, status);
this.serverAddress = serverAddress;
}
public SocketAddress getServerAddress() {
return serverAddress;
}
}