Files
spring-cloud-stream-samples/source
Spring Operator 95d61b1c8e URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 13 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 with 2 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* http://www.spring.io with 1 occurrences migrated to:
  https://www.spring.io ([https](https://www.spring.io) result 301).
* http://repo.spring.io/libs-milestone-local with 2 occurrences migrated to:
  https://repo.spring.io/libs-milestone-local ([https](https://repo.spring.io/libs-milestone-local) result 302).
* http://repo.spring.io/libs-release-local with 1 occurrences migrated to:
  https://repo.spring.io/libs-release-local ([https](https://repo.spring.io/libs-release-local) result 302).
* http://repo.spring.io/libs-snapshot-local with 2 occurrences migrated to:
  https://repo.spring.io/libs-snapshot-local ([https](https://repo.spring.io/libs-snapshot-local) result 302).
* http://repo.spring.io/release with 1 occurrences migrated to:
  https://repo.spring.io/release ([https](https://repo.spring.io/release) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 26 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 13 occurrences
2019-03-21 15:20:40 -04:00
..
2019-03-21 15:18:21 -04:00
2019-03-21 15:20:40 -04:00

Spring Cloud Stream Source Sample

In this Spring Cloud Stream sample, a timestamp is published on an interval determined by the fixedDelay property.

Requirements

To run this sample, you will need to have installed:

  • Java 8 or Above

This example requires Redis to be running on localhost.

Code Tour

This sample is a Spring Boot application that uses Spring Cloud Stream to publish timestamp data. The source module has 3 primary components:

  • SourceApplication - the Spring Boot Main Application

  • TimeSource - the module that will generate the timestamp and post the message to the stream

  • TimeSourceOptionsMetadata - defines the configurations that are available to setup the TimeSource

    • format - how to render the current time, using SimpleDateFormat

    • fixedDelay - time delay between messages

    • initialDelay - delay before the first message

    • timeUnit - the time unit for the fixed and initial delays

    • maxMessages - the maximum messages per poll; -1 for unlimited

Building with Maven

Build the sample by executing:

source>$ mvn clean package

Running the Sample

To start the source module execute the following:

source>$ java -jar target/spring-cloud-stream-sample-source-1.0.0.BUILD-SNAPSHOT-exec.jar