T - The list data type.public interface AsyncList<T> extends AsyncCollection<T>
If the current Vert.x instance is a Hazelcast clustered instance, the list will be backed by a Hazelcast list. Otherwise, the list will be backed by a Vert.x shared data map.
| Modifier and Type | Method and Description |
|---|---|
void |
get(int index,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> resultHandler)
Gets a value at a specific index in the list.
|
void |
remove(int index)
Removes an index in the list.
|
void |
remove(int index,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> doneHandler)
Removes an index in the list.
|
void |
set(int index,
T value)
Sets an index in the list.
|
void |
set(int index,
T value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Sets an index in the list.
|
void get(int index,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> resultHandler)
index - The index of the value to get.resultHandler - An asynchronous handler to be called with the value result.void set(int index,
T value)
index - The index to set.value - The value to set.void set(int index,
T value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
index - The index to set.value - The value to set.doneHandler - An asynchronous handler to be called once complete.void remove(int index)
index - The index to remove.void remove(int index,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> doneHandler)
index - The index to remove.doneHandler - An asynchronous handler to be called once complete. The handler
result will be the value that was removed from the list.Copyright © 2013-2014. All Rights Reserved.