E
- the item typepublic abstract class ListOperationCallback<E> extends Object implements ServiceCallback<List<E>>
Modifier and Type | Class and Description |
---|---|
static class |
ListOperationCallback.PagingBehavior
An enum to indicate whether the client should continue loading or stop.
|
Constructor and Description |
---|
ListOperationCallback()
Creates an instance of ListOperationCallback.
|
Modifier and Type | Method and Description |
---|---|
List<E> |
get()
Get the list result that stores the accumulated resources loaded from server.
|
void |
load(List<E> result)
This method is called by the client to load the most recent list of resources.
|
int |
pageCount()
Get the number of loaded pages.
|
abstract ListOperationCallback.PagingBehavior |
progress(List<E> partial)
Override this method to handle progressive results.
|
abstract void |
success()
Override this method to handle successful REST call results.
|
void |
success(List<E> result)
Override this method to handle successful REST call results.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
failure
public ListOperationCallback()
public abstract ListOperationCallback.PagingBehavior progress(List<E> partial)
ListOperationCallback.PagingBehavior
Enum to indicate
whether the client should continue loading or stop.partial
- the list of resources from the current request.public List<E> get()
public void load(List<E> result)
result
- the most recent list of resources.public void success(List<E> result)
ServiceCallback
success
in interface ServiceCallback<List<E>>
result
- the result object.public abstract void success()
public int pageCount()
Copyright © 2019. All rights reserved.