The project contains complete Spark applications (using Scala and sbt) to demonstrate various features of Spark Structured Streaming:
TIP: Read up on the features in The Internals of Spark Structured Streaming online book.
Just browse src/main/scala directory and read the scaladoc of the example of your interest.