Then .writeQueueSize should be changed to something like .hasPendingWrites=true|false.