Search in sources :

Example 1 with SuspectedException

use of org.jgroups.SuspectedException in project JGroups by belaban.

the class UnicastRequest method viewChange.

/**
 * If the target address is not a member of the new view, we'll mark the response as suspected and unblock
 * the caller of execute()
 */
public void viewChange(View view) {
    if (view == null)
        return;
    // SiteAddresses are not checked as they might be in a different cluster
    if (!(target instanceof SiteAddress) && !view.containsMember(target) && !isDone()) {
        completeExceptionally(new SuspectedException(target));
        corrDone();
    }
}
Also used : SuspectedException(org.jgroups.SuspectedException) SiteAddress(org.jgroups.protocols.relay.SiteAddress)

Aggregations

SuspectedException (org.jgroups.SuspectedException)1 SiteAddress (org.jgroups.protocols.relay.SiteAddress)1