Package org.drasyl.node
Class DrasylConfig.Builder
java.lang.Object
org.drasyl.node.DrasylConfig.Builder
- Enclosing class:
- DrasylConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Shortcut for callingidentityProofOfWork(ProofOfWork)
, andidentitySecretKey(IdentitySecretKey)
.abstract DrasylConfig.Builder
identityPath
(Path identityPath) abstract DrasylConfig.Builder
identityProofOfWork
(ProofOfWork identityProofOfWork) abstract DrasylConfig.Builder
identitySecretKey
(IdentitySecretKey identitySecretKey) abstract DrasylConfig.Builder
intraVmDiscoveryEnabled
(boolean intraVmDiscoveryEnabled) abstract DrasylConfig.Builder
messageBufferSize
(int messageBufferSize) abstract DrasylConfig.Builder
networkId
(int networkId) abstract DrasylConfig.Builder
plugins
(Set<DrasylPlugin> plugins) abstract DrasylConfig.Builder
remoteBindHost
(InetAddress remoteBindHost) abstract DrasylConfig.Builder
remoteBindPort
(int remoteBindPort) abstract DrasylConfig.Builder
remoteEnabled
(boolean remoteEnabled) abstract DrasylConfig.Builder
remoteExposeEnabled
(boolean remoteExposeEnabled) abstract DrasylConfig.Builder
remoteHandshakeTimeout
(Duration remoteHandshakeTimeout) abstract DrasylConfig.Builder
remoteLocalHostDiscoveryEnabled
(boolean remoteLocalHostDiscoveryEnabled) abstract DrasylConfig.Builder
remoteLocalHostDiscoveryLeaseTime
(Duration remoteLocalHostDiscoveryLeaseTime) abstract DrasylConfig.Builder
remoteLocalHostDiscoveryPath
(Path remoteLocalHostDiscoveryPath) abstract DrasylConfig.Builder
remoteLocalHostDiscoveryWatchEnabled
(boolean remoteLocalHostDiscoveryWatchEnabled) abstract DrasylConfig.Builder
remoteLocalNetworkDiscoveryEnabled
(boolean remoteLocalNetworkDiscoveryEnabled) abstract DrasylConfig.Builder
remoteMessageArmApplicationAgreementExpireAfter
(Duration remoteMessageArmApplicationAgreementExpireAfter) abstract DrasylConfig.Builder
remoteMessageArmApplicationAgreementMaxCount
(int remoteMessageArmApplicationAgreementMaxCount) abstract DrasylConfig.Builder
remoteMessageArmApplicationAgreementRetryInterval
(Duration remoteMessageArmApplicationAgreementRetryInterval) abstract DrasylConfig.Builder
remoteMessageArmApplicationEnabled
(boolean remoteMessageArmApplicationEnabled) abstract DrasylConfig.Builder
remoteMessageArmProtocolEnabled
(boolean remoteMessageArmProtocolEnabled) abstract DrasylConfig.Builder
remoteMessageArmProtocolSessionExpireAfter
(Duration remoteMessageArmProtocolSessionExpireAfter) abstract DrasylConfig.Builder
remoteMessageArmProtocolSessionMaxCount
(int remoteMessageArmProtocolSessionMaxCount) abstract DrasylConfig.Builder
remoteMessageArqClock
(Duration remoteMessageArqClock) abstract DrasylConfig.Builder
remoteMessageArqDeadPeerTimeout
(Duration remoteMessageArqDeadPeerTimeout) abstract DrasylConfig.Builder
remoteMessageArqEnabled
(boolean remoteMessageArqEnabled) abstract DrasylConfig.Builder
remoteMessageArqRetryTimeout
(Duration remoteMessageArqRetryTimeout) abstract DrasylConfig.Builder
remoteMessageArqWindowSize
(int remoteMessageArqWindowSize) abstract DrasylConfig.Builder
remoteMessageComposedMessageTransferTimeout
(Duration messageComposedMessageTransferTimeout) abstract DrasylConfig.Builder
remoteMessageHopLimit
(byte remoteMessageHopLimit) abstract DrasylConfig.Builder
remoteMessageMaxContentLength
(int remoteMessageMaxContentLength) abstract DrasylConfig.Builder
remoteMessageMtu
(int remoteMessageMtu) abstract DrasylConfig.Builder
remotePingCommunicationTimeout
(Duration remotePingCommunicationTimeout) abstract DrasylConfig.Builder
remotePingInterval
(Duration remotePingInterval) abstract DrasylConfig.Builder
remotePingMaxPeers
(int remotePingMaxPeers) abstract DrasylConfig.Builder
remotePingTimeout
(Duration remotePingTimeout) abstract DrasylConfig.Builder
remoteStaticRoutes
(Map<DrasylAddress, InetSocketAddress> remoteStaticRoutes) abstract DrasylConfig.Builder
remoteSuperPeerEnabled
(boolean remoteSuperPeerEnabled) abstract DrasylConfig.Builder
remoteSuperPeerEndpoints
(Set<PeerEndpoint> remoteSuperPeerEndpoints) abstract DrasylConfig.Builder
remoteTcpFallbackClientAddress
(InetSocketAddress remoteTcpFallbackClientAddress) abstract DrasylConfig.Builder
remoteTcpFallbackClientTimeout
(Duration remoteTcpFallbackClientTimeout) abstract DrasylConfig.Builder
remoteTcpFallbackEnabled
(boolean remoteTcpFallbackEnabled) abstract DrasylConfig.Builder
remoteTcpFallbackServerBindHost
(InetAddress remoteTcpFallbackServerBindHost) abstract DrasylConfig.Builder
remoteTcpFallbackServerBindPort
(int remoteTcpFallbackServerBindPort) abstract DrasylConfig.Builder
remoteUniteMinInterval
(Duration remoteUniteMinInterval) abstract DrasylConfig.Builder
serializationsBindingsInbound
(Map<Class<?>, String> serializationsBindingsInbound) abstract DrasylConfig.Builder
serializationsBindingsOutbound
(Map<Class<?>, String> serializationsBindingsOutbound) abstract DrasylConfig.Builder
serializationSerializers
(Map<String, Serializer> serializationSerializers) abstract DrasylConfig.Builder
sntpServers
(List<InetSocketAddress> sntpServers)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkId
-
identityProofOfWork
-
identitySecretKey
-
identity
Shortcut for callingidentityProofOfWork(ProofOfWork)
, andidentitySecretKey(IdentitySecretKey)
. -
identityPath
-
messageBufferSize
-
remoteBindHost
-
remoteEnabled
-
remoteBindPort
-
remotePingInterval
-
remotePingTimeout
-
remotePingCommunicationTimeout
public abstract DrasylConfig.Builder remotePingCommunicationTimeout(Duration remotePingCommunicationTimeout) -
remoteUniteMinInterval
-
remotePingMaxPeers
-
remoteExposeEnabled
-
remoteStaticRoutes
public abstract DrasylConfig.Builder remoteStaticRoutes(Map<DrasylAddress, InetSocketAddress> remoteStaticRoutes) -
remoteHandshakeTimeout
-
remoteMessageMtu
-
remoteMessageMaxContentLength
public abstract DrasylConfig.Builder remoteMessageMaxContentLength(int remoteMessageMaxContentLength) -
remoteMessageHopLimit
-
remoteMessageArmProtocolEnabled
public abstract DrasylConfig.Builder remoteMessageArmProtocolEnabled(boolean remoteMessageArmProtocolEnabled) -
remoteMessageArmProtocolSessionMaxCount
public abstract DrasylConfig.Builder remoteMessageArmProtocolSessionMaxCount(int remoteMessageArmProtocolSessionMaxCount) -
remoteMessageArmProtocolSessionExpireAfter
public abstract DrasylConfig.Builder remoteMessageArmProtocolSessionExpireAfter(Duration remoteMessageArmProtocolSessionExpireAfter) -
remoteMessageArmApplicationEnabled
public abstract DrasylConfig.Builder remoteMessageArmApplicationEnabled(boolean remoteMessageArmApplicationEnabled) -
remoteMessageArmApplicationAgreementMaxCount
public abstract DrasylConfig.Builder remoteMessageArmApplicationAgreementMaxCount(int remoteMessageArmApplicationAgreementMaxCount) -
remoteMessageArmApplicationAgreementExpireAfter
public abstract DrasylConfig.Builder remoteMessageArmApplicationAgreementExpireAfter(Duration remoteMessageArmApplicationAgreementExpireAfter) -
remoteMessageArmApplicationAgreementRetryInterval
public abstract DrasylConfig.Builder remoteMessageArmApplicationAgreementRetryInterval(Duration remoteMessageArmApplicationAgreementRetryInterval) -
remoteMessageArqEnabled
-
remoteMessageArqWindowSize
-
remoteMessageArqRetryTimeout
public abstract DrasylConfig.Builder remoteMessageArqRetryTimeout(Duration remoteMessageArqRetryTimeout) -
remoteMessageArqDeadPeerTimeout
public abstract DrasylConfig.Builder remoteMessageArqDeadPeerTimeout(Duration remoteMessageArqDeadPeerTimeout) -
remoteMessageArqClock
-
remoteMessageComposedMessageTransferTimeout
public abstract DrasylConfig.Builder remoteMessageComposedMessageTransferTimeout(Duration messageComposedMessageTransferTimeout) -
remoteSuperPeerEnabled
-
remoteSuperPeerEndpoints
public abstract DrasylConfig.Builder remoteSuperPeerEndpoints(Set<PeerEndpoint> remoteSuperPeerEndpoints) -
intraVmDiscoveryEnabled
-
remoteLocalHostDiscoveryEnabled
public abstract DrasylConfig.Builder remoteLocalHostDiscoveryEnabled(boolean remoteLocalHostDiscoveryEnabled) -
remoteLocalHostDiscoveryPath
public abstract DrasylConfig.Builder remoteLocalHostDiscoveryPath(Path remoteLocalHostDiscoveryPath) -
remoteLocalHostDiscoveryLeaseTime
public abstract DrasylConfig.Builder remoteLocalHostDiscoveryLeaseTime(Duration remoteLocalHostDiscoveryLeaseTime) -
remoteLocalHostDiscoveryWatchEnabled
public abstract DrasylConfig.Builder remoteLocalHostDiscoveryWatchEnabled(boolean remoteLocalHostDiscoveryWatchEnabled) -
remoteLocalNetworkDiscoveryEnabled
public abstract DrasylConfig.Builder remoteLocalNetworkDiscoveryEnabled(boolean remoteLocalNetworkDiscoveryEnabled) -
remoteTcpFallbackEnabled
-
remoteTcpFallbackServerBindHost
public abstract DrasylConfig.Builder remoteTcpFallbackServerBindHost(InetAddress remoteTcpFallbackServerBindHost) -
remoteTcpFallbackServerBindPort
public abstract DrasylConfig.Builder remoteTcpFallbackServerBindPort(int remoteTcpFallbackServerBindPort) -
remoteTcpFallbackClientTimeout
public abstract DrasylConfig.Builder remoteTcpFallbackClientTimeout(Duration remoteTcpFallbackClientTimeout) -
remoteTcpFallbackClientAddress
public abstract DrasylConfig.Builder remoteTcpFallbackClientAddress(InetSocketAddress remoteTcpFallbackClientAddress) -
plugins
-
sntpServers
-
serializationSerializers
public abstract DrasylConfig.Builder serializationSerializers(Map<String, Serializer> serializationSerializers) -
serializationsBindingsInbound
public abstract DrasylConfig.Builder serializationsBindingsInbound(Map<Class<?>, String> serializationsBindingsInbound) -
serializationsBindingsOutbound
public abstract DrasylConfig.Builder serializationsBindingsOutbound(Map<Class<?>, String> serializationsBindingsOutbound) -
build
-