- All Implemented Interfaces:
- net.openhft.chronicle.bytes.BytesMarshallable, net.openhft.chronicle.bytes.ReadBytesMarshallable, net.openhft.chronicle.bytes.WriteBytesMarshallable, net.openhft.chronicle.core.io.Resettable, ConnectionStrategy, net.openhft.chronicle.wire.Marshallable, net.openhft.chronicle.wire.ReadMarshallable, net.openhft.chronicle.wire.WriteMarshallable, net.openhft.chronicle.wire.WriteValue
public class AlwaysStartOnPrimaryConnectionStrategy
extends net.openhft.chronicle.wire.AbstractMarshallable
implements ConnectionStrategy
Loops through all the hosts:ports ( in order ) starting at the primary, till if finds a host that it can connect to.
If later, this successful connection is dropped, it will always return to the primary to begin attempting to find a successful connection,
If all the host:ports have been attempted since the last connection was established, no successful connection can be found,
then null is returned, and the fatalFailureMonitor.onFatalFailure() is triggered