A Java Redis PubSub helper which let you send full objects without need of manual serializing.
Credit goes to Joeleoli's Pidgin for the original idea of this, and to ThatKawaiiSam for the readme.
public class ExampleClass {
public static void main(final String[] args) {
// Create ur JedisPool
JedisPool pool = new JedisPool("localhost", 6379);
// Start the instance
Midnight midnight = new Midnight(pool);
}
}
midnight.registerObject(ExampleObject.class);
midnight.registerListener(new ExampleSubscriber());
midnight.sendObject(new ExampleObject("exampleParameter"));
Main Class | Example Object | Example Listener
When contributing, please create a pull request with the branch named as follows <feature/fix>/<title>
.
To compile, run the maven command: mvn clean install