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

    • Method Detail

      • putBuilder

        default <B extends PMessageBuilder<M>> void putBuilder​(@Nonnull
                                                               K key,
                                                               @Nonnull
                                                               B builder)
        Put the message represented by the builder into the store on the given key. Any further modifications to the builder will not be reflected on the store.
        Type Parameters:
        B - The builder type.
        Parameters:
        key - The key to store the builder on.
        builder - The builder to store.
      • putAllBuilders

        default <B extends PMessageBuilder<M>> void putAllBuilders​(@Nonnull
                                                                   java.util.Map<K,​B> builders)
        Put a collection of key and builder pairs onto the store. Any further modifications to the builders will not be reflected onto the store.
        Type Parameters:
        B - The builder type.
        Parameters:
        builders - Map of builders to put into the store.