public enum ConsistentReadControl extends Enum<ConsistentReadControl>
ConsistentReadControl.NONE
ConsistentReadControl.ETAG
ConsistentReadControl.VERSION_ID
Enum Constant and Description |
---|
ETAG
Default value.
|
NONE
No consistent read control.
|
VERSION_ID
Consistent control based on versionId.
|
Modifier and Type | Method and Description |
---|---|
static ConsistentReadControl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsistentReadControl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsistentReadControl NONE
MatchConditions.getIfMatch()
and
BlobClientBase.getVersionId()
.public static final ConsistentReadControl ETAG
MatchConditions.getIfMatch()
is set, the client will honor this value.
Otherwise, MatchConditions.getIfMatch()
is set to the latest eTag.
Note: Modification of the base blob will result in an IOException
or a BlobStorageException
if
eTag is the only form of consistent read control being employed.public static final ConsistentReadControl VERSION_ID
BlobClientBase.getVersionId()
is set, the client will honor this value.
Otherwise, BlobClientBase.getVersionId()
is set to the latest versionId.
Note: Modification of the base blob will not result in an Exception
and allow you to continue reading the
entirety of the appropriate version of the blob determined at the time of opening the InputStream
but it
may no longer be the latest data.public static ConsistentReadControl[] values()
public static ConsistentReadControl valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021 Microsoft Corporation. All rights reserved.