Interface PropertyService


@Internal public interface PropertyService
  • 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

      boolean getBoolean(@NotNull String key, boolean defaultValue)
    • getLong

      long getLong(@NotNull String key, long defaultValue)
    • set

      void set(@NotNull String key, @Nullable String value)
    • set

      void set(@NotNull String key, boolean value)
    • set

      void set(@NotNull String key, long value)
    • remove

      void remove(@NotNull String key)
    • invalidate

      void invalidate(@NotNull String key)
      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).