*/
package org.opendaylight.controller.cluster.access.client;
+import akka.actor.ActorRef;
+import java.util.Map.Entry;
+import org.opendaylight.controller.cluster.access.concepts.Request;
+import org.opendaylight.controller.cluster.access.concepts.RequestEnvelope;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
super(oldConnection);
}
- @Override
- void sendMessages(final int count) {
- LOG.debug("Connection {} is reconnecting, not transmitting anything", this);
- }
-
@Override
ClientActorBehavior<T> reconnectConnection(final ClientActorBehavior<T> current) {
// Intentional no-op
LOG.debug("Skipping reconnect of already-reconnecting connection {}", this);
return current;
}
+
+ @Override
+ Entry<ActorRef, RequestEnvelope> prepareForTransmit(final Request<?, ?> req) {
+ // This is guarded by remoteMaxMessages() == 0
+ throw new UnsupportedOperationException("Attempted to transmit on a reconnecting connection");
+ }
+
+ @Override
+ int remoteMaxMessages() {
+ return 0;
+ }
}