List of usage examples for org.springframework.integration.leader.event AbstractLeaderEvent getRole
public String getRole()
From source file:org.springframework.integration.support.SmartLifecycleRoleController.java
@Override public void onApplicationEvent(AbstractLeaderEvent event) { if (event instanceof OnGrantedEvent) { startLifecyclesInRole(event.getRole()); } else if (event instanceof OnRevokedEvent) { stopLifecyclesInRole(event.getRole()); }//from www.j a v a2s .c o m }