com.threerings.presents.client
Interface InvocationService.InvocationListener
- All Known Subinterfaces:
- AdminService.ConfigInfoListener, ChatService.TellListener, InvocationService.ConfirmListener, InvocationService.ResultListener, LocationService.MoveListener, TimeBaseService.GotTimeBaseListener
- All Known Implementing Classes:
- AdminMarshaller.ConfigInfoMarshaller, ChatMarshaller.TellMarshaller, ConfigEditorPanel, ConfigObjectManager, FutureResult, InvocationAdapter, InvocationMarshaller.ConfirmMarshaller, InvocationMarshaller.ListenerMarshaller, InvocationMarshaller.ResultMarshaller, LocationMarshaller.MoveMarshaller, LoggingListener, ResultListenerList, TimeBaseMarshaller.GotTimeBaseMarshaller
- Enclosing interface:
- InvocationService
public static interface InvocationService.InvocationListener
Invocation service methods that require a response should take a listener argument that can
be notified of request success or failure. The listener argument should extend this
interface so that generic failure can be reported in all cases. For example:
// Used to communicate responses to moveTo requests.
public interface MoveListener extends InvocationListener
{
// Called in response to a successful moveTo request.
void moveSucceeded (PlaceConfig config);
}
requestFailed
void requestFailed(String cause)
- 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.