don't spawn on received cluster state

This commit is contained in:
kimchy 2010-08-20 19:36:39 +03:00
parent 800e450e3a
commit 1ef1e9b25b
1 changed files with 7 additions and 0 deletions

View File

@ -107,5 +107,12 @@ public class PublishClusterStateAction extends AbstractComponent {
listener.onNewClusterState(request.clusterState);
channel.sendResponse(VoidStreamable.INSTANCE);
}
/**
* No need to spawn, we add submit a new cluster state directly. This allows for faster application.
*/
@Override public boolean spawn() {
return false;
}
}
}