Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Replace Timer with ScheduledExecutorService#75

Merged
theotniel merged 2 commits into
aionnetwork:devfrom
Centrys:AW-106
Jun 7, 2018
Merged

Replace Timer with ScheduledExecutorService#75
theotniel merged 2 commits into
aionnetwork:devfrom
Centrys:AW-106

Conversation

@synapsics-sergiu
Copy link
Copy Markdown
Contributor

No description provided.

private final KeystoreFormat keystoreFormat = new KeystoreFormat();

private final Timer lockTimer = new Timer(true);
private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to add more threads later? If not then please use newSingleThreadScheduledExecutor()

@theotniel theotniel merged commit 4aaff23 into aionnetwork:dev Jun 7, 2018
@theotniel theotniel deleted the AW-106 branch June 15, 2018 15:35
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.

3 participants