/** * NOTE this is important in case of tcp connection failure we do not need to cleanup the unicastConnections like we do in the DistributionManagerImpl * because the clientConnections in this class are in the client side * @param clientTcpConversation */ public void handleTcpConnectionFailure(TcpConnection clientTcpConversation) { lock (locker) { lockedClientTcpConversations.Remove(clientTcpConversation); freeClientTcpConversations.Remove(clientTcpConversation); } }
public void registerTcpConversation(TcpConnection clientTcpConversation) { throw new NotImplementedException(); }
public void releaseConversation(TcpConnection clientTcpConversation) { if (clientTcpConversation.ok()) { lock (locker) { lockedClientTcpConversations.Remove(clientTcpConversation); freeClientTcpConversations.Add(clientTcpConversation); } return; } else { //TODO handale this } }
public void handleTcpConnectionFailure(TcpConnection connection) { try { close(); } catch (PlanckDBException e) { log.error("Fail to terminate distributionManager connections", e); } }