mirror of https://github.com/apache/activemq.git
Added properties for caching of temp destinations
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@636722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a785cb75dd
commit
e4621e3aa7
|
@ -167,6 +167,8 @@ public class BrokerService implements Service {
|
|||
private boolean monitorConnectionSplits;
|
||||
private int taskRunnerPriority = Thread.NORM_PRIORITY;
|
||||
private boolean dedicatedTaskRunner;
|
||||
private boolean cacheTempDestinations=true;//useful for failover
|
||||
private int timeBeforePurgeTempDestinations = 5000;
|
||||
|
||||
|
||||
static {
|
||||
|
@ -1273,6 +1275,23 @@ public class BrokerService implements Service {
|
|||
public void setDedicatedTaskRunner(boolean dedicatedTaskRunner) {
|
||||
this.dedicatedTaskRunner = dedicatedTaskRunner;
|
||||
}
|
||||
|
||||
public boolean isCacheTempDestinations() {
|
||||
return cacheTempDestinations;
|
||||
}
|
||||
|
||||
public void setCacheTempDestinations(boolean cacheTempDestinations) {
|
||||
this.cacheTempDestinations = cacheTempDestinations;
|
||||
}
|
||||
|
||||
public int getTimeBeforePurgeTempDestinations() {
|
||||
return timeBeforePurgeTempDestinations;
|
||||
}
|
||||
|
||||
public void setTimeBeforePurgeTempDestinations(
|
||||
int timeBeforePurgeTempDestinations) {
|
||||
this.timeBeforePurgeTempDestinations = timeBeforePurgeTempDestinations;
|
||||
}
|
||||
//
|
||||
// Implementation methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue