Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Linked blocking queue #1833

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@

import java.nio.ByteBuffer;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.*;

import com.iota.iri.utils.IotaUtils;
import org.slf4j.Logger;
Expand Down Expand Up @@ -70,11 +67,11 @@ public class TransactionProcessingPipelineImpl implements TransactionProcessingP
private BatchedHasher batchedHasher;
private HashingStage hashingStage;

private BlockingQueue<ProcessingContext> preProcessStageQueue = new ArrayBlockingQueue<>(100);
private BlockingQueue<ProcessingContext> validationStageQueue = new ArrayBlockingQueue<>(100);
private BlockingQueue<ProcessingContext> receivedStageQueue = new ArrayBlockingQueue<>(100);
private BlockingQueue<ProcessingContext> broadcastStageQueue = new ArrayBlockingQueue<>(100);
private BlockingQueue<ProcessingContext> replyStageQueue = new ArrayBlockingQueue<>(100);
private BlockingQueue<ProcessingContext> preProcessStageQueue = new LinkedBlockingQueue<>();
private BlockingQueue<ProcessingContext> validationStageQueue = new LinkedBlockingQueue<>();
private BlockingQueue<ProcessingContext> receivedStageQueue = new LinkedBlockingQueue<>();
private BlockingQueue<ProcessingContext> broadcastStageQueue = new LinkedBlockingQueue<>();
private BlockingQueue<ProcessingContext> replyStageQueue = new LinkedBlockingQueue<>();

/**
* Creates a {@link TransactionProcessingPipeline}.
Expand Down