sendAdminForConnection

abstract suspend fun sendAdminForConnection(destNum: Int, expectedConnectionVersion: Long, requestId: Int = generatePacketId(), wantResponse: Boolean = false, initFn: () -> AdminMessage)(source)

Sends an admin message only if expectedConnectionVersion still owns queue admission.

Pass the version from ConnectionStateProvider.connectionLifecycle captured by the caller.

Throws

when the expected version is stale or the outbound queue otherwise refuses the command.