Code example for EventBus

Methods: post

0
 
    protected void updateInstances(boolean force) {
        List<Cluster> clusterList = getClusters();
 
        if (force || previousClusterList != clusterList) {
            bus.post(new ClustersUpdatedEvent(clusterList));
        } 
    } 
 
    @Managed
    public abstract List<Cluster> getClusters();
} 
Contextual code suggestions in your IDE  Get Codota for Java