@@ -1408,7 +1408,11 @@ private static void checkContentType(BlobInfo blobInfo) throws IllegalArgumentEx
14081408 /**
14091409 * Return a channel for reading the blob's content. The blob's latest generation is read. If the
14101410 * blob changes while reading (i.e. {@link BlobInfo#etag()} changes), subsequent calls to
1411- * {@link BlobReadChannel#read(ByteBuffer)} may throw {@link StorageException}.
1411+ * {@code blobReadChannel.read(ByteBuffer)} may throw {@link StorageException}.
1412+ *
1413+ * <p>The {@link BlobSourceOption#generationMatch(long)} option can be provided to ensure that
1414+ * {@code blobReadChannel.read(ByteBuffer)} calls will throw {@link StorageException} if blob`s
1415+ * generation differs from the expected one.
14121416 *
14131417 * @throws StorageException upon failure
14141418 */
@@ -1418,9 +1422,14 @@ private static void checkContentType(BlobInfo blobInfo) throws IllegalArgumentEx
14181422 * Return a channel for reading the blob's content. If {@code blob.generation()} is set
14191423 * data corresponding to that generation is read. If {@code blob.generation()} is {@code null}
14201424 * the blob's latest generation is read. If the blob changes while reading (i.e.
1421- * {@link BlobInfo#etag()} changes), subsequent calls to {@link BlobReadChannel# read(ByteBuffer)}
1425+ * {@link BlobInfo#etag()} changes), subsequent calls to {@code blobReadChannel. read(ByteBuffer)}
14221426 * may throw {@link StorageException}.
14231427 *
1428+ * <p>The {@link BlobSourceOption#generationMatch()} and
1429+ * {@link BlobSourceOption#generationMatch(long)} options can be used to ensure that
1430+ * {@code blobReadChannel.read(ByteBuffer)} calls will throw {@link StorageException} if the
1431+ * blob`s generation differs from the expected one.
1432+ *
14241433 * @throws StorageException upon failure
14251434 */
14261435 BlobReadChannel reader (BlobId blob , BlobSourceOption ... options );
0 commit comments