org.qi4j.library.scheduler.timeline
Class TimelineRecorderService.Mixin

java.lang.Object
  extended by org.qi4j.library.scheduler.timeline.TimelineRecorderService.Mixin
All Implemented Interfaces:
Composite, Identity, ServiceComposite, TimelineRecorderService
Enclosing interface:
TimelineRecorderService

public abstract static class TimelineRecorderService.Mixin
extends Object
implements TimelineRecorderService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.library.scheduler.timeline.TimelineRecorderService
TimelineRecorderService.Mixin
 
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity
Identity.IdentityMixin
 
Constructor Summary
TimelineRecorderService.Mixin()
           
 
Method Summary
 TimelineRecord recordFailure(Task task, Throwable cause)
          Record a Task failure.
 TimelineRecord recordSuccess(Task task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qi4j.api.entity.Identity
identity
 
Methods inherited from interface org.qi4j.api.composite.Composite
metaInfo, type
 

Constructor Detail

TimelineRecorderService.Mixin

public TimelineRecorderService.Mixin()
Method Detail

recordSuccess

public TimelineRecord recordSuccess(Task task)
Specified by:
recordSuccess in interface TimelineRecorderService
Parameters:
task - Successful Task
Returns:
TimelineRecord

recordFailure

public TimelineRecord recordFailure(Task task,
                                    Throwable cause)
Description copied from interface: TimelineRecorderService
Record a Task failure. Use the cause stacktrace as record details.

Specified by:
recordFailure in interface TimelineRecorderService
Parameters:
task - Failed Task
cause - Failure cause
Returns:
TimelineRecord