Package org.drasyl
Class DrasylConfig.Builder
java.lang.Object
org.drasyl.DrasylConfig.Builder
- Enclosing class:
 - DrasylConfig
 
Builder class to create a 
DrasylConfig with custom values.- 
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates aDrasylConfigfrom the builder.directConnectionsChannelInitializer(Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> directConnectionsChannelInitializer) directConnectionsEnabled(boolean directConnectionsEnabled) directConnectionsHandshakeTimeout(Duration directConnectionsHandshakeTimeout) directConnectionsIdleRetries(short directConnectionsIdleRetries) directConnectionsIdleTimeout(Duration directConnectionsIdleTimeout) directConnectionsMaxConcurrentConnections(int directConnectionsMaxConcurrentConnections) directConnectionsRetryDelays(List<Duration> directConnectionsRetryDelays) flushBufferSize(int flushBufferSize) identityPath(Path identityPath) identityPrivateKey(CompressedPrivateKey identityPrivateKey) identityProofOfWork(ProofOfWork identityProofOfWork) identityPublicKey(CompressedPublicKey identityPublicKey) intraVmDiscoveryEnabled(boolean intraVmDiscoveryEnabled) localHostDiscoveryEnabled(boolean localHostDiscoveryEnabled) localHostDiscoveryLeaseTime(Duration localHostDiscoveryLeaseTime) marshallingInboundAllowAllPrimitives(boolean marshallingInboundAllowAllPrimitives) marshallingInboundAllowArrayOfDefinedTypes(boolean marshallingInboundAllowArrayOfDefinedTypes) marshallingInboundAllowedPackages(List<String> marshallingInboundAllowedPackages) marshallingInboundAllowedTypes(List<String> marshallingInboundAllowedTypes) marshallingOutboundAllowAllPrimitives(boolean marshallingOutboundAllowAllPrimitives) marshallingOutboundAllowArrayOfDefinedTypes(boolean marshallingOutboundAllowArrayOfDefinedTypes) marshallingOutboundAllowedPackages(List<String> marshallingOutboundAllowedPackages) marshallingOutboundAllowedTypes(List<String> marshallingOutboundAllowedTypes) messageComposedMessageTransferTimeout(Duration composedMessageTransferTimeout) messageHopLimit(short messageHopLimit) messageMaxContentLength(int messageMaxContentLength) monitoringEnabled(boolean monitoringEnabled) monitoringInfluxDatabase(String monitoringInfluxDatabase) monitoringInfluxPassword(String monitoringInfluxPassword) monitoringInfluxReportingFrequency(Duration monitoringInfluxReportingFrequency) monitoringInfluxUri(URI monitoringInfluxUri) monitoringInfluxUser(String monitoringInfluxUser) networkId(int networkId) plugins(Set<DrasylPlugin> plugins) serverBindHost(InetAddress serverBindHost) serverBindPort(int serverBindPort) serverChannelInitializer(Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> serverChannelInitializer) serverEnabled(boolean serverEnabled) serverEndpoints(Set<Endpoint> serverEndpoints) serverExposeEnabled(boolean serverExposeEnabled) serverHandshakeTimeout(Duration serverHandshakeTimeout) serverIdleRetries(short serverIdleRetries) serverIdleTimeout(Duration serverIdleTimeout) serverSSLEnabled(boolean serverSSLEnabled) serverSSLProtocols(Set<String> serverSSLProtocols) superPeerChannelInitializer(Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> superPeerChannelInitializer) superPeerEnabled(boolean superPeerEnabled) superPeerEndpoints(Set<Endpoint> superPeerEndpoints) superPeerHandshakeTimeout(Duration superPeerHandshakeTimeout) superPeerIdleRetries(short superPeerIdleRetries) superPeerIdleTimeout(Duration superPeerIdleTimeout) superPeerRetryDelays(List<Duration> superPeerRetryDelays)  
- 
Method Details
- 
networkId
 - 
identityProofOfWork
 - 
identityPublicKey
 - 
identityPrivateKey
 - 
identityPath
 - 
serverBindHost
 - 
serverEnabled
 - 
serverBindPort
 - 
serverIdleRetries
 - 
serverIdleTimeout
 - 
flushBufferSize
 - 
serverSSLEnabled
 - 
serverSSLProtocols
 - 
serverHandshakeTimeout
 - 
serverEndpoints
 - 
serverChannelInitializer
public DrasylConfig.Builder serverChannelInitializer(Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> serverChannelInitializer)  - 
messageMaxContentLength
 - 
messageHopLimit
 - 
messageComposedMessageTransferTimeout
public DrasylConfig.Builder messageComposedMessageTransferTimeout(Duration composedMessageTransferTimeout)  - 
superPeerEnabled
 - 
superPeerEndpoints
 - 
superPeerRetryDelays
 - 
superPeerHandshakeTimeout
 - 
superPeerChannelInitializer
public DrasylConfig.Builder superPeerChannelInitializer(Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> superPeerChannelInitializer)  - 
superPeerIdleRetries
 - 
superPeerIdleTimeout
 - 
intraVmDiscoveryEnabled
 - 
localHostDiscoveryEnabled
 - 
localHostDiscoveryLeaseTime
 - 
directConnectionsEnabled
 - 
directConnectionsMaxConcurrentConnections
public DrasylConfig.Builder directConnectionsMaxConcurrentConnections(int directConnectionsMaxConcurrentConnections)  - 
directConnectionsRetryDelays
public DrasylConfig.Builder directConnectionsRetryDelays(List<Duration> directConnectionsRetryDelays)  - 
directConnectionsHandshakeTimeout
public DrasylConfig.Builder directConnectionsHandshakeTimeout(Duration directConnectionsHandshakeTimeout)  - 
directConnectionsChannelInitializer
public DrasylConfig.Builder directConnectionsChannelInitializer(Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> directConnectionsChannelInitializer)  - 
directConnectionsIdleRetries
 - 
directConnectionsIdleTimeout
 - 
monitoringEnabled
 - 
monitoringInfluxUri
 - 
monitoringInfluxUser
 - 
monitoringInfluxPassword
 - 
monitoringInfluxDatabase
 - 
monitoringInfluxReportingFrequency
public DrasylConfig.Builder monitoringInfluxReportingFrequency(Duration monitoringInfluxReportingFrequency)  - 
plugins
 - 
marshallingInboundAllowedTypes
public DrasylConfig.Builder marshallingInboundAllowedTypes(List<String> marshallingInboundAllowedTypes)  - 
marshallingInboundAllowAllPrimitives
public DrasylConfig.Builder marshallingInboundAllowAllPrimitives(boolean marshallingInboundAllowAllPrimitives)  - 
marshallingInboundAllowArrayOfDefinedTypes
public DrasylConfig.Builder marshallingInboundAllowArrayOfDefinedTypes(boolean marshallingInboundAllowArrayOfDefinedTypes)  - 
marshallingInboundAllowedPackages
public DrasylConfig.Builder marshallingInboundAllowedPackages(List<String> marshallingInboundAllowedPackages)  - 
marshallingOutboundAllowedTypes
public DrasylConfig.Builder marshallingOutboundAllowedTypes(List<String> marshallingOutboundAllowedTypes)  - 
marshallingOutboundAllowAllPrimitives
public DrasylConfig.Builder marshallingOutboundAllowAllPrimitives(boolean marshallingOutboundAllowAllPrimitives)  - 
marshallingOutboundAllowArrayOfDefinedTypes
public DrasylConfig.Builder marshallingOutboundAllowArrayOfDefinedTypes(boolean marshallingOutboundAllowArrayOfDefinedTypes)  - 
marshallingOutboundAllowedPackages
public DrasylConfig.Builder marshallingOutboundAllowedPackages(List<String> marshallingOutboundAllowedPackages)  - 
serverExposeEnabled
 - 
build
Creates aDrasylConfigfrom the builder.- Returns:
 - the 
DrasylConfigcreated from the builder 
 
 -