*/
package org.opendaylight.controller.cluster.access.client;
-import com.google.common.annotations.Beta;
import java.util.Optional;
import org.opendaylight.controller.cluster.access.concepts.RequestException;
-@Beta
public final class ConnectingClientConnection<T extends BackendInfo> extends AbstractClientConnection<T> {
/**
* A wild estimate on how deep a queue should be. Without having knowledge of the remote actor we can only
private static final int TARGET_QUEUE_DEPTH = 4000;
// Initial state, never instantiated externally
- ConnectingClientConnection(final ClientActorContext context, final Long cookie) {
- super(context, cookie, new TransmitQueue.Halted(TARGET_QUEUE_DEPTH));
+ ConnectingClientConnection(final ClientActorContext context, final Long cookie, final String backendName) {
+ super(context, cookie, backendName, TARGET_QUEUE_DEPTH);
}
@Override
return Optional.empty();
}
+ @Override
+ long backendSilentTicks(final long now) {
+ // We are still connecting and do not want the timer to attempt a reconnect
+ return 0;
+ }
+
@Override
ClientActorBehavior<T> lockedReconnect(final ClientActorBehavior<T> current, final RequestException cause) {
throw new UnsupportedOperationException("Attempted to reconnect a connecting connection", cause);