DefaultFailoverManager Class Reference
Inherits from | NSObject |
---|---|
Conforms to | FailoverManager |
Declared in | DefaultFailoverManager.h DefaultFailoverManager.m |
– onServerFailedWithConnectionInfo:failoverStatus:
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:
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:
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:
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:
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