class CloudLoadStrategyDefault implements CloudLoadStrategy {
    private static final int indexMax = 9999_9999;
    private static final ReentrantLock SYNC_LOCK = new ReentrantLock();

    @Override
    public String getServer(Discovery discovery) {<FILL_FUNCTION_BODY>}
}

        Instance instance;

        SYNC_LOCK.lock();
        try {
            Integer index = discovery.attachment();
            if (index == null || index > indexMax) {
                index = 0;
            }

            instance = discovery.instanceGet(index++);
            discovery.attachmentSet(index);
        } finally {
            SYNC_LOCK.unlock();
        }

        return instance.uri();
    
<no_super_class>