Package alluxio.conf
Class Hash
- java.lang.Object
-
- alluxio.conf.Hash
-
@ThreadSafe public final class Hash extends java.lang.Object
A hex encoded MD5 hash of the cluster or path configurations.
-
-
Constructor Summary
Constructors Constructor Description Hash(java.util.function.Supplier<java.util.stream.Stream<byte[]>> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
get()
IfmarkOutdated()
is called since lastget()
, then the version will be recomputed, otherwise, the internally cached version is returned.void
markOutdated()
Called when the version needs to be updated.
-
-
-
Method Detail
-
markOutdated
public void markOutdated()
Called when the version needs to be updated. Internally, it just sets a flag to indicate that the version should be updated, but version will not be recomputed untilget()
is called.
-
get
public java.lang.String get()
IfmarkOutdated()
is called since lastget()
, then the version will be recomputed, otherwise, the internally cached version is returned.- Returns:
- the latest version
-
-