mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
21 lines
423 B
Java
21 lines
423 B
Java
|
package org.thoughtcrime.securesms.util;
|
||
|
|
||
|
public class LinkedBlockingLifoQueue<E> extends LinkedBlockingDeque<E> {
|
||
|
@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;
|
||
|
}
|
||
|
}
|