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
enhance and cleanup the internal timers #100
Conversation
Get timed locked is used for checking if there is a timer running. I'm using it for blocking access. I still think it's better to use completable futures as it is less overhead and also it's possible to chain the timers. I was working on changing the timers to work better with chaining. Instead of having: time1= 10 createOrReplaceTimer(time).createOrReplaceAdditionalTimer(//Will be invoked when first timer finishes) Other than that it seems good. I would like to keep the timedLock (See example 2: https://github.com/seaside1/jrule#example-2 And I would like to be able to Chain the timers. /S |
yes ok, makes all sense. |
@seaside1 Can you please help with the current error in the pipeline. I've no dependencies touched and have no idea of the osgi stuff. |
I've added deps for netty let see if it works. Locally it works, but some tests still fail |
Got it. Used a netty dependency in the code where i don't want to. |
I'll have a look shortly |
...penhab/automation/jrule/internal/engine/excutioncontext/JRuleLocalTimerExecutionContext.java
Outdated
Show resolved
Hide resolved
The README file should probably be reviewed as well |
done |
src/main/java/org/openhab/automation/jrule/rules/JRuleDebounce.java
Outdated
Show resolved
Hide resolved
I'm failing to build this locally. I get
I think this caused by the Debounce class pulling some new dependency . Can you guys build locally? |
Build is working for me now. Unclear if it was java 17 vs java 11 problem, or simply my checkout that was bad. |
I have been having a lot lately, give me some time and I'll test and verify against my prod. I really like what you have done in this pr. |
add some integration-tests for an easier decision and a faster merge ;) |
@querdenker2k could you rebase and resolve conflicts? I know we have too many open (large) PRs and I am trying to merge some of them. |
0fdf9f1
to
227566d
Compare
…ance_cleanup_timers # Conflicts: # README.md # src/main/java/org/openhab/automation/jrule/internal/engine/JRuleEngine.java # src/main/java/org/openhab/automation/jrule/internal/engine/excutioncontext/JRuleItemChangeExecutionContext.java # src/main/java/org/openhab/automation/jrule/internal/engine/excutioncontext/JRuleItemExecutionContext.java # src/main/java/org/openhab/automation/jrule/internal/engine/excutioncontext/JRuleItemReceivedCommandExecutionContext.java # src/main/java/org/openhab/automation/jrule/internal/engine/excutioncontext/JRuleItemReceivedUpdateExecutionContext.java
Good to see this merged. I have been sick for the past weeks and was just about done testing this. |
Co-authored-by: Joseph Hagberg <joseph@zoidberg.se> Co-authored-by: Arne Seime <arne.seime@gmail.com>
What I've done: