Class ExtItemCache


  • public class ExtItemCache
    extends Object
    Cache for MExtItem catalog.
    • Constructor Detail

      • ExtItemCache

        public ExtItemCache()
    • Method Detail

      • initialize

        public void initialize​(Supplier<JdbcSession> jdbcSessionSupplier)
        Initializes the ext-item cache. Provided JdbcSession supplier will be used for later writes as well.
      • resolveExtensionItem

        @NotNull
        public @NotNull MExtItem resolveExtensionItem​(@NotNull
                                                      MExtItem.Key extItemKey)
      • getExtensionItem

        @Nullable
        public @Nullable MExtItem getExtensionItem​(Integer id)
      • getExtensionItem

        @Nullable
        public @Nullable MExtItem getExtensionItem​(MExtItem.Key extItemKey)
        Returns extension item from the local cache only. Use with care, because this is not multi-node safe.