-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PutQuery.PutQueryProvider
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description QueryValue<?>
getKey()
The keystatic PutQuery.PutQueryProvider
getProvider()
Returns thePutQuery.PutQueryProvider
instanceOptional<Duration>
getTtl()
This duration set a time for data in an entity to expire.QueryValue<?>
getValue()
The valuestatic PutQuery
parse(String query)
Obtains an instance ofGetQuery
from a text string.
-
-
-
Method Detail
-
getKey
QueryValue<?> getKey()
The key- Returns:
- the key
-
getValue
QueryValue<?> getValue()
The value- Returns:
- the value
-
getTtl
Optional<Duration> getTtl()
This duration set a time for data in an entity to expire. It defines the time to live of an object in a database.- Returns:
- the TTL otherwise
Optional.empty()
-
parse
static PutQuery parse(String query)
Obtains an instance ofGetQuery
from a text string.- Parameters:
query
- the query- Returns:
GetQuery
instance- Throws:
NullPointerException
- when the query is nullQuerySyntaxException
- if the text cannot be parsedProviderNotFoundException
- when the provider is not found
-
getProvider
static PutQuery.PutQueryProvider getProvider()
Returns thePutQuery.PutQueryProvider
instance- Returns:
- the PutQueryProvider instance
- Throws:
ProviderNotFoundException
- when the provider is not found
-
-