Commit 2196ebf1 authored by Andre Freyssinet's avatar Andre Freyssinet
Browse files

Minor changes.

parent 0d19fc01
......@@ -221,12 +221,12 @@ public abstract class Destination extends Agent implements DestinationMBean {
/**
* Finalizes the agent before it is garbaged.
*
* @param lastime true if the destination is deleted
* @param last true if the destination is deleted
*/
public void agentFinalize(boolean lastTime) {
public void agentFinalize(boolean last) {
if (task != null) task.cancel();
finalize(lastTime);
finalize(last);
try {
MXWrapper.unregisterMBean(getMBeanName());
......@@ -234,15 +234,15 @@ public abstract class Destination extends Agent implements DestinationMBean {
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "Destination.agentFinalize", exc);
}
super.agentFinalize(lastTime);
super.agentFinalize(last);
}
/**
* Finalizes the destination before it is garbaged.
*
* @param lastime true if the destination is deleted
* @param last true if the destination is deleted
*/
protected abstract void finalize(boolean lastTime);
protected abstract void finalize(boolean last);
public String getMBeanName() {
StringBuffer strbuf = new StringBuffer();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment