Interface ConnectionPolicy

  • All Known Implementing Classes:
    FirstConnectionPolicy, RoundRobinConnectionPolicy

    public interface ConnectionPolicy
    Connection policy. Implementations of this interface define an algorithm of selection processing workers like round-robin or first id.
    • Method Detail

      • connectionIndex

        int connectionIndex()
        Returns:
        Index from 0 to max int. Usually thread connection index.