[FLINK-17533] Expose checkpointId from barrier messages

This commit changes the boolean method isBarrierMessage() to
return an OptionalLong that would carry the checkpointId when the message
is a checkpoint barrier.
6 files changed