public class AlwaysStartOnPrimaryConnectionStrategy extends AbstractConnectionStrategy
clientConnectionMonitor, localBindingNetworkInterface, localBindingProtocolFamily, localSocketBindingHost, localSocketBindingPort, tcpBufferSize| Constructor and Description |
|---|
AlwaysStartOnPrimaryConnectionStrategy() |
close, defaultMaxPauseSec, defaultMinPauseSec, isClosed, localBindingNetworkInterface, localBindingProtocolFamily, localSocketBinding, localSocketBindingHost, localSocketBindingPort, openreadMarshallable, unexpectedField, writeMarshallableusesSelfDescribingMessageequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitopenSocketChannel, openSocketChannel, pauseBeforeReconnect, socketChannel, throwExceptionIfClosed$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValuepublic AlwaysStartOnPrimaryConnectionStrategy()
public AlwaysStartOnPrimaryConnectionStrategy clientConnectionMonitor(ClientConnectionMonitor fatalFailureMonitor)
public ClientConnectionMonitor clientConnectionMonitor()
@Nullable public @Nullable ChronicleSocketChannel connect(@NotNull @NotNull String name, @NotNull @NotNull SocketAddressSupplier socketAddressSupplier, boolean didLogIn, @Nullable @Nullable FatalFailureMonitor fatalFailureMonitor) throws InterruptedException
ConnectionStrategyname - the name of the connection, only used for loggingsocketAddressSupplier - to use for addressdidLogIn - was the last attempt successful, was a login establishedfatalFailureMonitor - this is invoked on failuresInterruptedException - if the channel is interrupted.public long pauseMillisBeforeReconnect()
ConnectionStrategypublic AlwaysStartOnPrimaryConnectionStrategy tcpBufferSize(int tcpBufferSize)
public AlwaysStartOnPrimaryConnectionStrategy pausePeriodMs(int pausePeriodMs)
public AlwaysStartOnPrimaryConnectionStrategy socketConnectionTimeoutMs(int socketConnectionTimeoutMs)
public AlwaysStartOnPrimaryConnectionStrategy pauseMillisBeforeReconnect(long pauseMillisBeforeReconnect)
public long minPauseSec()
public long maxPauseSec()
public AlwaysStartOnPrimaryConnectionStrategy minPauseSec(long minPauseSec)
public AlwaysStartOnPrimaryConnectionStrategy maxPauseSec(long maxPauseSec)
Copyright © 2023. All rights reserved.