Search in sources :

Example 1 with CancellableCountDownLatchFactory

use of com.quorum.tessera.threading.CancellableCountDownLatchFactory 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);
}
Also used : PayloadPublisher(com.quorum.tessera.transaction.publish.PayloadPublisher) BatchPayloadPublisher(com.quorum.tessera.transaction.publish.BatchPayloadPublisher) CancellableCountDownLatchFactory(com.quorum.tessera.threading.CancellableCountDownLatchFactory) ExecutorFactory(com.quorum.tessera.threading.ExecutorFactory)

Example 2 with CancellableCountDownLatchFactory

use of com.quorum.tessera.threading.CancellableCountDownLatchFactory 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);
}
Also used : CancellableCountDownLatchFactory(com.quorum.tessera.threading.CancellableCountDownLatchFactory) ExecutorFactory(com.quorum.tessera.threading.ExecutorFactory) PrivacyGroupPublisher(com.quorum.tessera.privacygroup.publish.PrivacyGroupPublisher) BatchPrivacyGroupPublisher(com.quorum.tessera.privacygroup.publish.BatchPrivacyGroupPublisher)

Aggregations

CancellableCountDownLatchFactory (com.quorum.tessera.threading.CancellableCountDownLatchFactory)2 ExecutorFactory (com.quorum.tessera.threading.ExecutorFactory)2 BatchPrivacyGroupPublisher (com.quorum.tessera.privacygroup.publish.BatchPrivacyGroupPublisher)1 PrivacyGroupPublisher (com.quorum.tessera.privacygroup.publish.PrivacyGroupPublisher)1 BatchPayloadPublisher (com.quorum.tessera.transaction.publish.BatchPayloadPublisher)1 PayloadPublisher (com.quorum.tessera.transaction.publish.PayloadPublisher)1