FailoverStrategy Protocol Reference

Declared in FailoverStrategy.h

Overview

Failover strategy is responsible for producing failover decisions based on failover statuses.

– onRecoverWithConnectionInfo: required method

Needs to be invoked once client recovered after failover.

- (void)onRecoverWithConnectionInfo:(id<TransportConnectionInfo>)connectionInfo

Parameters

connectionInfo

server information

Discussion

Needs to be invoked once client recovered after failover.

Declared In

FailoverStrategy.h

– decisionOnFailoverStatus: required method

Needs to be invoked to determine a decision that resolves the failover.

- (FailoverDecision *)decisionOnFailoverStatus:(FailoverStatus)status

Parameters

failoverStatus

current status of the failover.

Return Value

decision which is meant to resolve the failover.

Discussion

Needs to be invoked to determine a decision that resolves the failover.

Declared In

FailoverStrategy.h