Skip to content

Commit

Permalink
[private-bamoe-issues#1326] Avoid duplicate timer execution with long…
Browse files Browse the repository at this point in the history
… running timers and async nodes (#2373)

* [private-bamoe-issues#1326] Avoid duplicate timer execution with long running timers and async nodes

* [private-bamoe-issues#1326] Simplify the equals/hashCode methods
  • Loading branch information
martinweiler committed Jan 8, 2024
1 parent 8e917fb commit f04f016
Showing 1 changed file with 14 additions and 0 deletions.
Expand Up @@ -372,6 +372,20 @@ public String getUuid() {
return null;
}

@Override
public int hashCode() {
return (int)getId();
}

@Override
public boolean equals(Object obj) {
if ( this == obj ) return true;
if (obj == null || !obj.getClass().equals(getClass())) {
return false;
}
return getId() == ((DefaultJobHandle)obj).getId();
}

}

public static class DisposableCommandService implements InternalLocalRunner {
Expand Down

0 comments on commit f04f016

Please sign in to comment.