this.date = date;
}
@Override
public void initialize() {
RequestMessage message = new RequestMessage();
message.setMagic(TapMagic.PROTOCOL_BINARY_REQ);
message.setOpcode(TapOpcode.REQUEST);
message.setFlags(TapRequestFlag.BACKFILL);
message.setFlags(TapRequestFlag.SUPPORT_ACK);
message.setFlags(TapRequestFlag.FIX_BYTEORDER);
if (id != null) {
message.setName(id);
} else {
message.setName(UUID.randomUUID().toString());
}
message.setBackfill(date);
setBuffer(message.getBytes());
}