Skip to content

Allow ExecutorService to be injected #2354

Closed
@boaty82

Description

@boaty82

Please, please, please can this be injected through an overloaded constructor, and make the existing constructors chain on with a default value as per current defaulting logic.

I have need to use this class with another executorservice/threadfactory and it's looks like I'm going to have to now duplicate a lot of code

private final ExecutorService executorService =
Executors.newSingleThreadExecutor(new CustomizableThreadFactory("lock-leadership-"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions