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

org.infinispan.client.hotrod.exceptions.RemoteIllegalLifecycleStateException Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.client.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 7.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;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy