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:
Robert Davies 2008-03-13 11:35:57 +00:00
parent a785cb75dd
commit e4621e3aa7
1 changed files with 19 additions and 0 deletions

View File

@ -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
// -------------------------------------------------------------------------