public void setEventBus(EventBus eventBus) {
        this.eventBus = eventBus;
    }
Sets the EventBus to use to publish SessionEvents.

@param eventBus the EventBus to use to publish SessionEvents.
@since 1.3
core/src/main/java/org/apache/shiro/session/mgt/AbstractNativeSessionManager.java