Interface PropertyService
@Internal
public interface PropertyService
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String key, boolean defaultValue) longvoidinvalidate(String key) Invalidates the value cache, so the next get() will reload the value from the database.voidvoidvoidvoid
-
Method Details
-
getString
@Contract("_, null -> _; _, !null -> !null") String getString(@NotNull String key, @Nullable String defaultValue) - Parameters:
key- shouldn't be longer than 190 characters - see AOUtil.MAX_STRING_FIELD_LENGTH.
-
getBoolean
-
getLong
-
set
-
set
-
set
-
remove
-
invalidate
Invalidates the value cache, so the next get() will reload the value from the database. The invalidation will also clear the cache on other nodes. NB: set() operations automatically send invalidation. This method can be used to ensure that the value read is not stale (under a global lock).
-