Code example for EventBus

Methods: unregister

0
		eventBus.register(object);
	} 
	 
	public void unregister(Object object) { 
		logger.log(Level.INFO, "Event bus '" + this.getClass().getSimpleName() + "': Unregistering " + object.getClass().getSimpleName() + " (" + object + ") ...");
		eventBus.unregister(object);
	}	 
	 
	public void post(Object event) { 
		logger.log(Level.INFO, "Event bus '" + this.getClass().getSimpleName() + "': Posting event " + event.getClass().getSimpleName() + " (" + event + ") ...");
		eventBus.post(event);
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java