You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2015/11/27 14:20:03 UTC
svn commit: r1716873 -
/sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobBuilder.java
Author: cziegeler
Date: Fri Nov 27 13:20:02 2015
New Revision: 1716873
URL: http://svn.apache.org/viewvc?rev=1716873&view=rev
Log:
Update javadoc
Modified:
sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobBuilder.java
Modified: sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobBuilder.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobBuilder.java?rev=1716873&r1=1716872&r2=1716873&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobBuilder.java (original)
+++ sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobBuilder.java Fri Nov 27 13:20:02 2015
@@ -35,6 +35,8 @@ public interface JobBuilder {
/**
* Set the optional configuration properties for the job.
+ * @param props The properties of the job. All values must be {@code java.io.Serializable}.
+ * @return The job builder to continue building.
*/
JobBuilder properties(final Map<String, Object> props);
@@ -67,6 +69,7 @@ public interface JobBuilder {
/**
* Suspend this scheduling by default.
* Invoking this method several times has the same effect as calling it just once.
+ * @return The schedule builder to continue building.
*/
ScheduleBuilder suspend();
@@ -74,6 +77,7 @@ public interface JobBuilder {
* Schedule the job hourly at the given minute.
* If the minutes argument is less than 0 or higher than 59, the job can't be scheduled.
* @param minute Between 0 and 59.
+ * @return The schedule builder to continue building.
*/
ScheduleBuilder hourly(final int minute);
@@ -83,6 +87,7 @@ public interface JobBuilder {
* a value higher than 59 for minute than the job can't be scheduled.
* @param hour Hour of the day ranging from 0 to 23.
* @param minute Minute of the hour ranging from 0 to 59.
+ * @return The schedule builder to continue building.
*/
ScheduleBuilder daily(final int hour, final int minute);
@@ -94,6 +99,7 @@ public interface JobBuilder {
* @param day Day of the week, 1:Sunday, 2:Monday, ... 7:Saturday.
* @param hour Hour of the day ranging from 0 to 23.
* @param minute Minute of the hour ranging from 0 to 59.
+ * @return The schedule builder to continue building.
*/
ScheduleBuilder weekly(final int day, final int hour, final int minute);
@@ -105,6 +111,7 @@ public interface JobBuilder {
* @param day Day of the month from 1 to 28.
* @param hour Hour of the day ranging from 0 to 23.
* @param minute Minute of the hour ranging from 0 to 59.
+ * @return The schedule builder to continue building.
*/
ScheduleBuilder monthly(final int day, final int hour, final int minute);
@@ -118,6 +125,7 @@ public interface JobBuilder {
* @param day Day of the month from 1 to 28.
* @param hour Hour of the day ranging from 0 to 23.
* @param minute Minute of the hour ranging from 0 to 59.
+ * @return The schedule builder to continue building.
*/
ScheduleBuilder yearly(final int month, final int day, final int hour, final int minute);
@@ -125,6 +133,7 @@ public interface JobBuilder {
* Schedule the job for a specific date.
* If no date or a a date in the past is provided, the job can't be scheduled.
* @param date The date
+ * @return The schedule builder to continue building.
*/
ScheduleBuilder at(final Date date);
@@ -132,6 +141,7 @@ public interface JobBuilder {
* Schedule the job for according to the cron expression.
* If no expression is specified, the job can't be scheduled.
* @param expression The cron expression
+ * @return The schedule builder to continue building.
*/
ScheduleBuilder cron(final String expression);