Simple pubsub implementation using core JAVA with no external dependencies