connection = pool.getResource();
String line = null;
if(getMode.equals(GetMode.RANDOM_REMOVE)) {
line = connection.lpop(redisKey);
} else {
line = connection.srandmember(redisKey);
}
if(line == null) { // i.e. no more data (nil)
throw new JMeterStopThreadException("End of redis data detected, thread will exit");
}
final String names = variableNames;