mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
Threading: use BlockingQueue
interface internally
This makes it clear that we're not using specific features of the `LinkedBlockingQueue` implementation class.
This commit is contained in:
parent
d05d44c8c3
commit
8c3cf0acd5
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
@ -87,7 +88,7 @@ public class Threading {
|
|||
// 10,000 pending tasks is entirely arbitrary and may or may not be appropriate for the device we're
|
||||
// running on.
|
||||
public static int WARNING_THRESHOLD = 10000;
|
||||
private final LinkedBlockingQueue<Runnable> tasks;
|
||||
private final BlockingQueue<Runnable> tasks;
|
||||
|
||||
public UserThread() {
|
||||
super("bitcoinj user thread");
|
||||
|
|
Loading…
Add table
Reference in a new issue