Class ClusterRedirectException

All Implemented Interfaces:
Serializable

public class ClusterRedirectException extends DataRetrievalFailureException
ClusterRedirectException indicates that a requested slot is not served by the targeted server but can be obtained on another one.
Since:
1.7
Author:
Christoph Strobl, Mark Paluch
See Also:
  • Constructor Details

    • ClusterRedirectException

      public ClusterRedirectException(int slot, String targetHost, int targetPort, Throwable e)
      Parameters:
      slot - the slot to redirect to.
      targetHost - the host to redirect to.
      targetPort - the port on the host.
      e - the root cause from the data access API in use.
  • Method Details

    • getSlot

      public int getSlot()
      Returns:
      the slot to go for.
    • getTargetHost

      public String getTargetHost()
      Returns:
      host serving the slot.
    • getTargetPort

      public int getTargetPort()
      Returns:
      port on host serving the slot.