use of com.quorum.tessera.threading.ExecutorFactory in project tessera by ConsenSys.
the class BatchPayloadPublisherProvider method provider.
public static BatchPayloadPublisher provider() {
ExecutorFactory executorFactory = new ExecutorFactory();
CancellableCountDownLatchFactory countDownLatchFactory = new CancellableCountDownLatchFactory();
PayloadPublisher payloadPublisher = PayloadPublisher.create();
return new AsyncBatchPayloadPublisher(executorFactory, countDownLatchFactory, payloadPublisher);
}
use of com.quorum.tessera.threading.ExecutorFactory in project tessera by ConsenSys.
the class BatchPrivacyGroupPublisherProvider method provider.
public static BatchPrivacyGroupPublisher provider() {
PrivacyGroupPublisher privacyGroupPublisher = PrivacyGroupPublisher.create();
ExecutorFactory executorFactory = new ExecutorFactory();
CancellableCountDownLatchFactory countDownLatchFactory = new CancellableCountDownLatchFactory();
return new AsyncBatchPrivacyGroupPublisher(executorFactory, countDownLatchFactory, privacyGroupPublisher);
}
Aggregations