
com.quorum.tessera.p2p.resend.ResendClientFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sync-jaxrs Show documentation
Show all versions of sync-jaxrs Show documentation
Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.
package com.quorum.tessera.p2p.resend;
import com.quorum.tessera.ServiceLoaderUtil;
import com.quorum.tessera.config.CommunicationType;
import com.quorum.tessera.config.Config;
public interface ResendClientFactory {
ResendClient create(Config config);
CommunicationType communicationType();
static ResendClientFactory newFactory(Config config) {
// TODO: return the stream and let the caller deal with it
return ServiceLoaderUtil.loadAll(ResendClientFactory.class)
.filter(c -> c.communicationType() == config.getP2PServerConfig().getCommunicationType())
.findFirst()
.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy