}
protected void sendWriteBuffer(int commandId, SocketAddress address, byte[] data, boolean redelivery) throws IOException {
// lets put the datagram into the replay buffer first to prevent timing
// issues
ReplayBuffer bufferCache = getReplayBuffer();
if (bufferCache != null && !redelivery) {
bufferCache.addBuffer(commandId, data);
}
if (LOG.isDebugEnabled()) {
String text = redelivery ? "REDELIVERING" : "sending";
LOG.debug("Channel: " + name + " " + text + " datagram: " + commandId + " to: " + address);