use of org.apache.samza.serializers.CheckpointV2Serde in project samza by apache.
the class TestKafkaCheckpointManager method newCheckpointV2Envelope.
private IncomingMessageEnvelope newCheckpointV2Envelope(TaskName taskName, CheckpointV2 checkpointV2, String checkpointMessageOffset) {
KafkaCheckpointLogKey checkpointKey = new KafkaCheckpointLogKey(KafkaCheckpointLogKey.CHECKPOINT_V2_KEY_TYPE, taskName, GROUPER_FACTORY_CLASS);
KafkaCheckpointLogKeySerde checkpointKeySerde = new KafkaCheckpointLogKeySerde();
CheckpointV2Serde checkpointMsgSerde = new CheckpointV2Serde();
return new IncomingMessageEnvelope(CHECKPOINT_SSP, checkpointMessageOffset, checkpointKeySerde.toBytes(checkpointKey), checkpointMsgSerde.toBytes(checkpointV2));
}
Aggregations