org.sejda.model.notification.event
Class TaskExecutionCompletedEvent

java.lang.Object
  extended by org.sejda.model.notification.event.AbstractNotificationEvent
      extended by org.sejda.model.notification.event.TaskExecutionCompletedEvent
All Implemented Interfaces:
Serializable, NotificationEvent

public class TaskExecutionCompletedEvent
extends AbstractNotificationEvent

Event thrown when an execution completes without errors.

Author:
Andrea Vacondio
See Also:
Serialized Form

Constructor Summary
TaskExecutionCompletedEvent(long executionTime, NotifiableTaskMetadata taskMetadata)
          Creates an instance specifying the execution time, the number of millis from the task to complete.
 
Method Summary
 long getExecutionTime()
           
 String toString()
           
 
Methods inherited from class org.sejda.model.notification.event.AbstractNotificationEvent
getEventTimestamp, getNotifiableTaskMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskExecutionCompletedEvent

public TaskExecutionCompletedEvent(long executionTime,
                                   NotifiableTaskMetadata taskMetadata)
Creates an instance specifying the execution time, the number of millis from the task to complete.

Parameters:
executionTime -
taskMetadata -
Method Detail

getExecutionTime

public long getExecutionTime()
Returns:
the number of millis from the task to complete or -1 if not specified.

toString

public String toString()
Overrides:
toString in class AbstractNotificationEvent


Copyright © 2013 sejda. All Rights Reserved.