com.threerings.presents.util
Class ResultListenerList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<InvocationService.ResultListener>
com.threerings.presents.util.ResultListenerList
- All Implemented Interfaces:
- InvocationService.InvocationListener, InvocationService.ResultListener, Serializable, Cloneable, Iterable<InvocationService.ResultListener>, Collection<InvocationService.ResultListener>, List<InvocationService.ResultListener>, RandomAccess
public class ResultListenerList
- extends ArrayList<InvocationService.ResultListener>
- implements InvocationService.ResultListener
Maintains a list of result listeners, dispatching the eventual actual result or failure to them
all as if they were a single listener.
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
ResultListenerList
public ResultListenerList()
requestProcessed
public void requestProcessed(Object result)
- Description copied from interface:
InvocationService.ResultListener
- Indicates that the request was successfully processed.
- Specified by:
requestProcessed in interface InvocationService.ResultListener
requestFailed
public void requestFailed(String cause)
- Description copied from interface:
InvocationService.InvocationListener
- Called to report request failure. If the invocation services system detects failure of
any kind, it will report it via this callback. Particular services may also make use of
this callback to report failures of their own, or they may opt to define more specific
failure callbacks.
- Specified by:
requestFailed in interface InvocationService.InvocationListener