Interface MessageReadOnlyStore<K,​M extends PMessage<M>>

    • Method Detail

      • getBuilder

        @Nullable
        default <B extends PMessageBuilder<M>> B getBuilder​(@Nonnull
                                                            K key)
        Get the builder representing the message on the given key. Any modifications to the returned builder will not be reflected onto the store.
        Type Parameters:
        B - The builder type.
        Parameters:
        key - The key to find builder for.
        Returns:
        The builder if message was found or null if not.
      • getAllBuilders

        @Nonnull
        default <B extends PMessageBuilder<M>> java.util.Map<K,​B> getAllBuilders​(@Nonnull
                                                                                       java.util.Collection<K> keys)
        Get builders for all keys requested. Any modifications to the returned builders will not be reflected onto the store. The result map fill not contain any (key -> null) entries.
        Type Parameters:
        B - The builder type.
        Parameters:
        keys - Keys to look up.
        Returns:
        The map of found entries.