package org.thoughtcrime.securesms.util; import java.util.concurrent.LinkedBlockingDeque; public class LinkedBlockingLifoQueue extends LinkedBlockingDeque { @Override public void put(E runnable) throws InterruptedException { super.putFirst(runnable); } @Override public boolean add(E runnable) { super.addFirst(runnable); return true; } @Override public boolean offer(E runnable) { super.addFirst(runnable); return true; } }