@Override public void handleMemberPacket(final Packet packet) { final Address endPoint = packet.getConn().getEndPoint(); if (endPoint != null) { final MemberImpl member = node.clusterService.getMember(endPoint); if (member != null) { member.didRead(); } } nodeEngine.handlePacket(packet); }
public boolean write(SocketWritable socketWritable) { final Packet packet = (Packet) socketWritable; if (nodeEngine.getNode().isActive()) { packet.setConn(thisConnection); MemberImpl member = nodeEngine.getClusterService().getMember(thisAddress); if (member != null) { member.didRead(); } nodeEngine.handlePacket(packet); return true; } return false; }
public boolean write(SocketWritable socketWritable) { final Packet packet = (Packet) socketWritable; if (nodeEngine.getNode().isActive()) { Packet newPacket = readFromPacket(packet); MemberImpl member = nodeEngine.getClusterService().getMember(localEndpoint); if (member != null) { member.didRead(); } nodeEngine.getPacketTransceiver().receive(newPacket); return true; } return false; }