/** * This method is public only so it can be invoked by unit testing, but should not otherwise be * used ! */ @ManagedOperation( description = "Trashes all connections to other nodes. This is only used for testing") public void removeAllConnections() { for (SenderEntry entry : send_table.values()) entry.reset(); send_table.clear(); sendStableMessages(); for (ReceiverEntry entry2 : recv_table.values()) entry2.reset(); recv_table.clear(); }
public void removeSendConnection(Address mbr) { SenderEntry entry = send_table.remove(mbr); if (entry != null) entry.reset(); }