for setting queue length and dead letter queue