Improved Deadline API #220

abuijze opened this Issue Dec 30, 2016 · 0 comments


None yet

1 participant

abuijze commented Dec 30, 2016

Currently, only EventMessages can be scheduled to be published on the Event Bus. However, it is quite common that only the component registering the deadline is interested in getting a notification of its expiry.

Therefore, the deadline API should be modified and be more specific for deadlines.
Something like:

@CommandHandler // could be any handler
public void handle(SomeCommand cmd, DeadlineManager deadlineManager) {
   deadlineManager.scheduleDeadline("myDeadlineName", new SomeContextualInformation())

public void on(SomeContextualInformation info) {
    // do whatever is needed
@abuijze abuijze added the Feature label Dec 30, 2016
@abuijze abuijze added this to the Release 3.1 milestone Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment