@Override
    public V pollLastAndOfferFirstTo(String queueName) {
        return get(pollLastAndOfferFirstToAsync(queueName));
    }
@Test
    public void testPollLastAndOfferFirstTo() {
        RPriorityQueue<Integer> queue1 = redisson.getPriorityQueue("deque1");
        queue1.add(2);
        queue1.add(1);
        queue1.add(3);

        RPriorityQueue<Integer> queue2 = redisson.getPriorityQueue("deque2");
        queue2.add(5);
        queue2.add(4);
        queue2.add(6);
        
        queue1.pollLastAndOfferFirstTo(queue2.getName());
        assertThat(queue2).containsExactly(3, 4, 5, 6);
    }