Class FirstCandidateSelectionStrategy

    • Constructor Detail

      • FirstCandidateSelectionStrategy

        public FirstCandidateSelectionStrategy​(long selectionDelayInMillis,
                                               Map<String,​Long> initialStatistics)
    • Method Detail

      • newOwner

        public String newOwner​(String currentOwner,
                               Collection<String> viableCandidates)
        Description copied from interface: EntityOwnerSelectionStrategy
        Selects a new owner from the list of viable candidates.
        Parameters:
        currentOwner - the current owner of the entity if any, null otherwise
        viableCandidates - the available candidates from which to choose the new owner
        Returns:
        the new owner