Class AbstractStringPublisherTemplateSet

java.lang.Object
io.inverno.mod.irt.AbstractTemplateSet
io.inverno.mod.irt.AbstractStringPublisherTemplateSet
All Implemented Interfaces:
PublisherTemplateSet<String>, TemplateSet

public abstract class AbstractStringPublisherTemplateSet extends AbstractTemplateSet implements PublisherTemplateSet<String>

A TemplateSet base implementation template sets which renders data in a reactive way using a String sink.

This implementation allows to process rendered data without waiting for the whole data set to be rendered or even available following reactive programming principles.

Since:
1.2
Author:
Jeremy Kuhn
  • Field Details

    • sink

      protected final Sinks.Many<String> sink
      The String sink where rendered data are published
  • Constructor Details

    • AbstractStringPublisherTemplateSet

      protected AbstractStringPublisherTemplateSet(Charset charset)

      Creates a String publisher template set.

      Parameters:
      charset - the charset to use to encode data
  • Method Details