/** * Disconnects and closes the channel. This method does the following things * <ol> * <li>Calls <code>this.disconnect</code> if the disconnect parameter is true * <li>Calls <code>ProtocolStack.stop</code> on the protocol stack * <li>Calls <code>ProtocolStack.destroy</code> on the protocol stack * <li>Sets the channel closed and channel connected flags to true and false * <li>Notifies any channel listener of the channel close operation * </ol> */ protected void _close(boolean disconnect) { Address old_addr=local_addr; if(state == State.CLOSED) return; if(disconnect) disconnect(); // leave group if connected stopStack(true, true); state=State.CLOSED; notifyChannelClosed(this); init(); // sets local_addr=null; changed March 18 2003 (bela) -- prevented successful rejoining if(old_addr != null) UUID.remove(old_addr); }
/** * Disconnects and closes the channel. This method does the following things * <ol> * <li>Calls <code>this.disconnect</code> if the disconnect parameter is true * <li>Calls <code>ProtocolStack.stop</code> on the protocol stack * <li>Calls <code>ProtocolStack.destroy</code> on the protocol stack * <li>Sets the channel closed and channel connected flags to true and false * <li>Notifies any channel listener of the channel close operation * </ol> */ protected void _close(boolean disconnect) { Address old_addr=local_addr; if(state == State.CLOSED) return; if(disconnect) disconnect(); // leave group if connected stopStack(true, true); state=State.CLOSED; notifyChannelClosed(this); init(); // sets local_addr=null; changed March 18 2003 (bela) -- prevented successful rejoining if(old_addr != null) UUID.remove(old_addr); }
/** * Disconnects and closes the channel. This method does the following things * <ol> * <li>Calls <code>this.disconnect</code> if the disconnect parameter is true * <li>Calls <code>ProtocolStack.stop</code> on the protocol stack * <li>Calls <code>ProtocolStack.destroy</code> on the protocol stack * <li>Sets the channel closed and channel connected flags to true and false * <li>Notifies any channel listener of the channel close operation * </ol> */ protected void _close(boolean disconnect) { Address old_addr=local_addr; if(state == State.CLOSED) return; if(disconnect) disconnect(); // leave group if connected stopStack(true, true); state=State.CLOSED; notifyChannelClosed(this); init(); // sets local_addr=null; changed March 18 2003 (bela) -- prevented successful rejoining if(old_addr != null) UUID.remove(old_addr); }