Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src URL Cleanup Mar 21, 2019
README.adoc Update README.adoc Aug 31, 2017
pom.xml Reviert time's version to 2.1.1.BS Aug 27, 2019

README.adoc

Time Source

The time source will simply emit a String with the current time every so often.

Input

N/A

Output

Headers:

  • Content-Type: text/plain

Payload:

A String with the time output.

Options

The time source has the following options:

trigger.cron

Cron expression value for the Cron Trigger. (String, default: <none>)

trigger.date-format

Format for the date value. (String, default: <none>)

trigger.fixed-delay

Fixed delay for periodic triggers. (Integer, default: 1)

trigger.initial-delay

Initial delay for periodic triggers. (Integer, default: 0)

trigger.max-messages

Maximum messages per poll, -1 means infinity. (Long, default: 1)

trigger.time-unit

The TimeUnit to apply to delay values. (TimeUnit, default: <none>, possible values: NANOSECONDS,MICROSECONDS,MILLISECONDS,SECONDS,MINUTES,HOURS,DAYS)

Build

$ ./mvnw clean install -PgenerateApps
$ cd apps

You can find the corresponding binder based projects here. You can then cd into one one of the folders and build it:

$ ./mvnw clean package

Examples

java -jar time-source.jar
You can’t perform that action at this time.