Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ObjectThreader for multithreading using pipelines #291

Closed
wants to merge 1 commit into from

Conversation

dr0i
Copy link
Member

@dr0i dr0i commented Mar 7, 2019

The ObjectThreader divides incoming objects and passes them to receivers which,
in conjunction with an ObjectPipeDecoupler, are running in their own threads.
The receivers can be added like Tee receivers. Thus, a multithreaded object pipeline
is created.

  • change methods of DefaultTee to not be final

The ObjectThreader makes use of the DefaultTee and overrides two methods, so
they musn't be final.

See hbz/lobid-resources#967.

The ObjectThreader divides incoming objects and passes them to receivers which,
in conjunction with an ObjectPipeDecoupler, are running in their own threads.
The receivers can be added like Tee receivers. Thus, a multithreaded object pipeline
is created.

- change methods of DefaultTee to not be final

The ObjectThreader makes use of the DefaultTee and overrides two methods, so
they musn't be final.

See hbz/lobid-resources#967.
@dr0i
Copy link
Member Author

dr0i commented Mar 7, 2019

Ups, again, sorry, this should first be reviewed in another repo.
Also, test are missing here.
Closing.

@dr0i dr0i closed this Mar 7, 2019
blackwinter pushed a commit that referenced this pull request Dec 13, 2024
blackwinter pushed a commit that referenced this pull request Dec 13, 2024
blackwinter pushed a commit that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant