Code example for EventBus

Methods: unregister

0
        LOGGER.debug("Tearing down: {}", this.getClass().getCanonicalName());
 
        producer.close();
        jmsSession.close(); 
        connection.close();
        eventBus.unregister(this);
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java