LOG.warn("Receiver cache already contained entry for " + source);
}
}
private void generateSenderHint(Envelope envelope, RemoteReceiver receiver) throws IOException {
Channel channel = this.channels.get(envelope.getSource());
if (channel == null) {
LOG.error("Cannot find channel for channel ID " + envelope.getSource());
return;
}
// Only generate sender hints for output channels
if (channel.isInputChannel()) {
return;
}
final ChannelID targetChannelID = channel.getConnectedId();
final int connectionIndex = receiver.getConnectionIndex();
final RemoteReceiver ourAddress = new RemoteReceiver(this.ourAddress, connectionIndex);
final Envelope senderHint = SenderHintEvent.createEnvelopeWithEvent(envelope, targetChannelID, ourAddress);