Class ClusterRejectedJoinException

    • Constructor Detail

      • ClusterRejectedJoinException

        public ClusterRejectedJoinException​(String rejectReason,
                                            ClusterAddress rejectedBy)
        Constructs new instance with the specified reject reason and address of the node that rejected this node joining.
        Parameters:
        rejectReason - Reject reason as it was returned by ClusterAcceptor.acceptJoin(ClusterNode, Hekate).
        rejectedBy - Address of the node that rejected this node joining.
    • Method Detail

      • rejectedBy

        public ClusterAddress rejectedBy()
        Returns address of the node that rejected this node joining.
        Returns:
        Address of the node that rejected this node joining.
      • forkFromAsync

        public HekateException forkFromAsync()
        Description copied from class: HekateException
        Forks this exception by creating a new exception that has this instance as its cause.

        The primary use case of this method is to re-throw exceptions from asynchronous contexts (f.e. exceptions thrown by Future.get() method).

        Overrides:
        forkFromAsync in class ClusterException
        Returns:
        Fork of this exception.