Documentation ¶
Overview ¶
Package processor manage polling of associations, dispatching association to processor
Package processor manage polling of associations, dispatching association to processor ¶
Package processor manage polling of associations, dispatching association to processor
Index ¶
- type Processor
- func (p *Processor) ExecuteInProgressDocument(docState *docModel.DocumentState, cancelFlag task.CancelFlag)
- func (p *Processor) ExecutePendingDocument(docState *docModel.DocumentState)
- func (p *Processor) InitializeAssociationProcessor()
- func (p *Processor) ProcessAssociation()
- func (p *Processor) SetPollJob(job *scheduler.Job)
- func (p *Processor) ShutdownAndWait(timeout time.Duration)
- func (p *Processor) Stop()
- func (p *Processor) SubmitTask(log log.T, jobID string, job task.Job) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor contains the logic for processing association
func NewAssociationProcessor ¶
NewAssociationProcessor returns a new Processor with the given context.
func (*Processor) ExecuteInProgressDocument ¶
func (p *Processor) ExecuteInProgressDocument(docState *docModel.DocumentState, cancelFlag task.CancelFlag)
ExecuteInProgressDocument wraps ExecuteInProgressDocument from document executer
func (*Processor) ExecutePendingDocument ¶
func (p *Processor) ExecutePendingDocument(docState *docModel.DocumentState)
ExecutePendingDocument wraps ExecutePendingDocument from document executer
func (*Processor) InitializeAssociationProcessor ¶
func (p *Processor) InitializeAssociationProcessor()
StartAssociationWorker starts worker to process scheduled association
func (*Processor) ProcessAssociation ¶
func (p *Processor) ProcessAssociation()
ProcessAssociation poll and process all the associations
func (*Processor) SetPollJob ¶
SetPollJob represents setter for PollJob
func (*Processor) ShutdownAndWait ¶
ShutdownAndWait wraps the ShutdownAndWait for task pool