FailoverManager Protocol Reference

Declared in FailoverManager.h

Overview

Manager responsible for managing current server’s failover/connection events

– onServerFailedWithConnectionInfo:failoverStatus: required method

Needs to be invoked when a server fail occurs.

- (void)onServerFailedWithConnectionInfo:(id<TransportConnectionInfo>)connectionInfo failoverStatus:(FailoverStatus)status

Discussion

Needs to be invoked when a server fail occurs.

Declared In

FailoverManager.h

– onServerChangedWithConnectionInfo: required method

Needs to be invoked as soon as current server is changed.

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

Discussion

Needs to be invoked as soon as current server is changed.

Declared In

FailoverManager.h

– onServerConnectedWithConnectionInfo: required method

Needs to be invoked as soon as connection to the current server is established.

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

Discussion

Needs to be invoked as soon as connection to the current server is established.

Declared In

FailoverManager.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

FailoverManager.h

– setFailoverStrategy: required method

strategy that will be used to resolve failovers.

- (void)setFailoverStrategy:(id<FailoverStrategy>)failoverStrategy

Parameters

failoverStrategy

strategy that will be used to resolve failovers.

See Also

Declared In

FailoverManager.h