public void finalize() { try {broadcast(MapMessage.MSG_STOP,false); }catch ( Exception ignore){} //cleanup if (this.rpcChannel != null) { this.rpcChannel.breakdown(); } if (this.channel != null) { this.channel.removeChannelListener(this); this.channel.removeMembershipListener(this); } this.rpcChannel = null; this.channel = null; this.mapMembers.clear(); super.clear(); this.stateTransferred = false; this.externalLoaders = null; }
public void breakdown() { this.state = State.DESTROYED; if (this.rpcChannel != null) { this.rpcChannel.breakdown(); } if (this.channel != null) { try {broadcast(MapMessage.MSG_STOP,false); }catch ( Exception ignore){} //cleanup this.channel.removeChannelListener(this); this.channel.removeMembershipListener(this); } this.rpcChannel = null; this.channel = null; this.mapMembers.clear(); innerMap.clear(); this.stateTransferred = false; this.externalLoaders = null; }
@Override public void finalize() { if (this.rpcChannel != null) { this.rpcChannel.breakdown(); } try {broadcast(MapMessage.MSG_STOP,false); }catch ( Exception ignore){} //cleanup if (this.channel != null) { this.channel.removeChannelListener(this); this.channel.removeMembershipListener(this); } this.rpcChannel = null; this.channel = null; this.mapMembers.clear(); innerMap.clear(); this.stateTransferred = false; this.externalLoaders = null; }
@Override public void finalize() { try {broadcast(MapMessage.MSG_STOP,false); }catch ( Exception ignore){} //cleanup if (this.rpcChannel != null) { this.rpcChannel.breakdown(); } if (this.channel != null) { this.channel.removeChannelListener(this); this.channel.removeMembershipListener(this); } this.rpcChannel = null; this.channel = null; this.mapMembers.clear(); super.clear(); this.stateTransferred = false; this.externalLoaders = null; }