BackgroundThread Plugin

Implement a Hook to Use Executors

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Refactor the current implementation to use Java's "Executor" framework. This should enable people to use Java's advanced Executor implementations instead of the built-in flat thread pool we're currently using. The current behavior (block while queue is full) would have to be implemented as a RejectedTaskHandler.

Activity

Hide
Ewan Dawson added a comment -

I would like to see the bgThreadManager bean implement the Executor interface, so I can use it as a TaskExecutor with Spring Batch 2.1

Show
Ewan Dawson added a comment - I would like to see the bgThreadManager bean implement the Executor interface, so I can use it as a TaskExecutor with Spring Batch 2.1
Hide
frankie added a comment -

pro, implement Executor interface has better usage. This is very good plugin and useful.

We use it for send email, request http request or webservice. but for reduce memory usage by iterator and remove used elements make code look not simple.

Thank You.

Show
frankie added a comment - pro, implement Executor interface has better usage. This is very good plugin and useful. We use it for send email, request http request or webservice. but for reduce memory usage by iterator and remove used elements make code look not simple. Thank You.

People

Vote (10)
Watch (7)

Dates

  • Created:
    Updated:

Time Tracking

Estimated:
2d
Original Estimate - 2 days
Remaining:
2d
Remaining Estimate - 2 days
Logged:
Not Specified
Time Spent - Not Specified