- java.lang.Object
- 
- aeonics.entity.Entity
- 
- aeonics.entity.Step.Type
- 
- aeonics.entity.Step.Origin.Type
- 
- aeonics.entity.Step.Origin.Background
 
 
 
 
- 
- All Implemented Interfaces:
- Exportable,- Snapshotable,- java.io.Closeable,- java.lang.AutoCloseable,- java.lang.Runnable
 - Enclosing class:
- Step.Origin
 
 public static class Step.Origin.Background extends Step.Origin.Type implements java.lang.Runnable This class represents a data Origin that runs in the background in order to collect data and inject it in the system.You should implement the run()method and call theStep.Origin.Type.produce(Message, String)method to inject data in the system.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface aeonics.util.SnapshotableSnapshotable.SnapshotMode
 
- 
 - 
Constructor SummaryConstructors Constructor Description Background()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Collects data in the background and callsStep.Type.emit(Message, String)method to inject data in the system.<T extends Step.Origin.Background>
 Trun(java.lang.Runnable runner)Sets the run function as an alternative torun().voidstart()Starts this Origin entity.voidstop()Stops this Origin entity.- 
Methods inherited from class aeonics.entity.Step.Origin.Typeclose, produce, start, started, started, starting, starting, stop, stopped, stopped, stopping, stopping
 - 
Methods inherited from class aeonics.entity.EntityaddRelation, addRelation, addRelation, cast, clearRelation, config, context, countRelations, countRelations, defineRelation, equals, export, firstRelation, hashCode, hasRelation, id, internal, internal, name, name, onCreate, onRemove, onUpdate, parameter, relations, relationships, removeRelation, snapshot, snapshotMode, template, type, valueOf, valueOf
 
- 
 
- 
- 
- 
Method Detail- 
runpublic <T extends Step.Origin.Background> T run(java.lang.Runnable runner) Sets the run function as an alternative torun().- Type Parameters:
- T- this
- Parameters:
- runner- the run function
- Returns:
- this
 
 - 
runpublic void run() Collects data in the background and callsStep.Type.emit(Message, String)method to inject data in the system.- Specified by:
- runin interface- java.lang.Runnable
 
 - 
startpublic void start() Description copied from class:Step.Origin.TypeStarts this Origin entity. The Origin can only be started if it is currently stopped, otherwise it does nothing. Implementations are responsible to set and maintain the internal state.- Overrides:
- startin class- Step.Origin.Type
 
 - 
stoppublic void stop() Description copied from class:Step.Origin.TypeStops this Origin entity. The Origin can only be stopped if it is currently running, otherwise it does nothing. Implementations are responsible to set and maintain the internal state.- Overrides:
- stopin class- Step.Origin.Type
 
 
- 
 
-