62 |
/** |
/** |
63 |
* Allows to enable/disable the Synchronizer's functionality it. |
* Allows to enable/disable the Synchronizer's functionality it. |
64 |
*/ |
*/ |
65 |
private boolean enabled = true; |
private volatile boolean enabled = true; |
66 |
|
|
67 |
/** |
/** |
68 |
* Creates a new synchronizer |
* Creates a new synchronizer |
83 |
* <code>true</code> or <code>false</code> |
* <code>true</code> or <code>false</code> |
84 |
*/ |
*/ |
85 |
public void setEnabled(boolean enabled) { |
public void setEnabled(boolean enabled) { |
86 |
|
if (enabled == false && this.enabled==true) { |
87 |
|
LOGGER.debug("disabling the synchronizer map -> "); |
88 |
|
} else if (enabled == true && this.enabled==false) { |
89 |
|
LOGGER.debug("enable the synchronizer map -> "); |
90 |
|
} |
91 |
this.enabled = enabled; |
this.enabled = enabled; |
92 |
} |
} |
93 |
|
|