|
|
|
|
@ -44,6 +44,7 @@ import org.springframework.util.Assert;
@@ -44,6 +44,7 @@ import org.springframework.util.Assert;
|
|
|
|
|
* @author Chris Bono |
|
|
|
|
* @author Phillip Webb |
|
|
|
|
* @author Swamy Mavuri |
|
|
|
|
* @author Vedran Pavic |
|
|
|
|
* @since 3.2.0 |
|
|
|
|
*/ |
|
|
|
|
@ConfigurationProperties("spring.pulsar") |
|
|
|
|
@ -136,6 +137,11 @@ public class PulsarProperties {
@@ -136,6 +137,11 @@ public class PulsarProperties {
|
|
|
|
|
*/ |
|
|
|
|
private final Authentication authentication = new Authentication(); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Thread related configuration. |
|
|
|
|
*/ |
|
|
|
|
private final Threads threads = new Threads(); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Failover settings. |
|
|
|
|
*/ |
|
|
|
|
@ -177,6 +183,10 @@ public class PulsarProperties {
@@ -177,6 +183,10 @@ public class PulsarProperties {
|
|
|
|
|
return this.authentication; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Threads getThreads() { |
|
|
|
|
return this.threads; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Failover getFailover() { |
|
|
|
|
return this.failover; |
|
|
|
|
} |
|
|
|
|
@ -959,6 +969,36 @@ public class PulsarProperties {
@@ -959,6 +969,36 @@ public class PulsarProperties {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class Threads { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Number of threads to be used for handling connections to brokers. |
|
|
|
|
*/ |
|
|
|
|
private Integer io; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Number of threads to be used for message listeners. |
|
|
|
|
*/ |
|
|
|
|
private Integer listener; |
|
|
|
|
|
|
|
|
|
public Integer getIo() { |
|
|
|
|
return this.io; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setIo(Integer io) { |
|
|
|
|
this.io = io; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Integer getListener() { |
|
|
|
|
return this.listener; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setListener(Integer listener) { |
|
|
|
|
this.listener = listener; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class Failover { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|