public JobUpdateImpl()

in src/main/java/org/apache/sling/jobs/impl/JobUpdateImpl.java [62:87]


    public JobUpdateImpl(@NotNull Job job, @NotNull JobUpdateCommand command, @NotNull Map<String, Object> properties) {
        if ( job == null ) {
            throw new IllegalArgumentException("Job argument cant be null");
        }
        if ( command == null ) {
            throw new IllegalArgumentException("JobCommand argument cant be null");
        }
        if ( properties == null ) {
            throw new IllegalArgumentException("Map of properties cant be null");
        }

        jobQueue = job.getQueue();
        jobType = job.getJobType();
        id = job.getId();
        startedAt = job.getStarted();
        createdAt = job.getCreated();
        finishedAt = job.getFinished();
        retryCount = job.getRetryCount();
        jobState = job.getJobState();
        resultMessage = job.getResultMessage();
        numberOfRetries = job.getNumberOfRetries();
        updateTimestamp = System.currentTimeMillis();
        expires = updateTimestamp + TTL;
        this.command = command;
        this.properties = properties;
    }