-
-
Save chermehdi/69c937de695b7622240531f6b76e54ef to your computer and use it in GitHub Desktop.
Event contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.chermehdi.bus; | |
/** | |
* interface describing a generic event, and it's associated meta data, it's this what's going to | |
* get sent in the bus to be dispatched to intrested Subscribers | |
* | |
* @author chermehdi | |
*/ | |
public interface Event<T> { | |
/** | |
* @returns the stored data associated with the event | |
*/ | |
T getData(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment