Java ProtocolServerConfigurationBuilder Example

Introduction

The java protocolserverconfigurationbuilder example is extracted from the most popular open source projects, you can refer to the following example for usage.

Programming language: Java

Namespace/package name: org.infinispan.server.core.configuration

Example#1
File: HotRodServerConfigurationBuilder.javaProject: rarguello/infinispan

 @Override
 public void validate() {
   super.validate();
   if (proxyHost == null) {
     proxyHost = host;
   }
   if (proxyPort < 0) {
     proxyPort = port;
   }
 }

Example#2
File: HotRodServerConfigurationBuilder.javaProject: rarguello/infinispan

 @Override
 public HotRodServerConfigurationBuilder read(HotRodServerConfiguration template) {
   super.read(template);
   this.proxyHost = template.proxyHost();
   this.proxyPort = template.proxyPort();
   this.topologyLockTimeout = template.topologyLockTimeout();
   this.topologyReplTimeout = template.topologyReplTimeout();
   this.topologyAwaitInitialTransfer = template.topologyAwaitInitialTransfer();
   this.topologyStateTransfer = template.topologyStateTransfer();
   return this;
 }