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

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

There is a newer version: 14.0.32.Final
Show newest version
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;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy