Interface StreamingStrategy

All Known Implementing Classes:
DefaultStreamingStrategy

public interface StreamingStrategy
  • Method Summary

    Modifier and Type Method Description
    boolean requiresStreaming​(Segment segment)
    Determines whether or not the provided segment requires any subsegment streaming.
    void streamSome​(Entity entity, Emitter emitter)
    Streams (and removes) some subsegment children from the provided segment or subsegment.
  • Method Details

    • requiresStreaming

      boolean requiresStreaming​(Segment segment)
      Determines whether or not the provided segment requires any subsegment streaming.
      Parameters:
      segment - the segment to inspect
      Returns:
      true if the segment should be streaming.
    • streamSome

      void streamSome​(Entity entity, Emitter emitter)
      Streams (and removes) some subsegment children from the provided segment or subsegment.
      Parameters:
      entity - the segment or subsegment to stream children from
      emitter - the emitter to send the child subsegments to