| Modifier and Type | Class and Description |
|---|---|
| public static interface | TimeUtils.
A sample task to be executed. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | computeAndShowTime(String
- A user friendly message to be shown in the logs. msg, TimeUtils.- A taskTask that represents the task to be executed.Helper method that can be used to compute the time. |
| public static String | Returns: - A formatted string representation of the time in the timezone as obtained viaRuntimeBehavior#getTimeZone()- The time in milliseconds timeInMilliSeconds, String - A format that can be used by format)SimpleDateFormat
|
| TimeUtils | back to summary |
|---|---|
| private TimeUtils() | |
| computeAndShowTime | back to summary |
|---|---|
| public static void computeAndShowTime(String msg, TimeUtils. Helper method that can be used to compute the time. | |
| formatTimeInLocalOrSpecifiedTimeZone | back to summary |
|---|---|
public static String formatTimeInLocalOrSpecifiedTimeZone(long timeInMilliSeconds, String format)
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| execute | back to summary |
|---|---|
| public void execute() The actual work to be executed. | |