public class UrlList extends Object
current().
When a request against the current url fails, the fail(String) method is invoked,
and we'll move on to the next url (returning back to the start if we have to).| Constructor and Description |
|---|
UrlList(List<String> urls) |
UrlList(String url) |
| Modifier and Type | Method and Description |
|---|---|
String |
current()
Get the current url
|
void |
fail(String url)
Declare the given url as failed.
|
void |
randomizeIndex() |
int |
size()
The number of unique urls contained in this collection.
|
String |
toString() |
List<String> |
urls() |
public void randomizeIndex()
public String current()
public void fail(String url)
url - the url that has failedpublic int size()
Copyright © 2025 Confluent, Inc.. All rights reserved.