Package com.playtika.shepherd.common
Interface PastureListener<Breed>
- Type Parameters:
Breed-
public interface PastureListener<Breed>
`cleanup` and `assign` divided by global sync barrier
None `assign` will be called until all `cleanup` finished
-
Method Summary
Modifier and TypeMethodDescriptionvoidassigned(List<Breed> population, AssignmentData populationAssignment) Invoked when new subpopulation assigned to this pasturedefault voidcleanup()Invoked on first phase of rebalance
-
Method Details
-
assigned
Invoked when new subpopulation assigned to this pasture -
cleanup
default void cleanup()Invoked on first phase of rebalance
-