mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-184 added a method to return the server version from the stateless client
This commit is contained in:
@@ -114,6 +114,7 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
|
||||
PUT_IF_ABSENT,
|
||||
REMOVE_WITH_VALUE,
|
||||
TO_STRING,
|
||||
VERSION,
|
||||
PUT_ALL,
|
||||
PUT_ALL_WITHOUT_ACC,
|
||||
HASH_CODE,
|
||||
@@ -431,6 +432,11 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
|
||||
return fetchObject(String.class, TO_STRING);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String version() {
|
||||
return fetchObject(String.class, VERSION);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return fetchBoolean(IS_EMPTY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user