- AbstractReceivingClientConnection(final ClientActorContext context, final Long cookie, final T backend) {
- super(context, cookie, new TransmitQueue.Transmitting(targetQueueSize(backend), backend));
- this.backend = Preconditions.checkNotNull(backend);
+ // To be called by ConnectedClientConnection only.
+ AbstractReceivingClientConnection(final AbstractClientConnection<T> oldConnection, final T newBackend) {
+ super(oldConnection, newBackend, targetQueueSize(newBackend));
+ this.backend = newBackend;