Queue with limited length.