Created a couple of basic directly usable InvocationListener derivations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2296 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: InvocationService.java,v 1.1 2002/08/14 19:07:54 mdb Exp $
|
// $Id: InvocationService.java,v 1.2 2003/03/04 01:26:30 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.client;
|
package com.threerings.presents.client;
|
||||||
|
|
||||||
@@ -83,4 +83,28 @@ public interface InvocationService
|
|||||||
*/
|
*/
|
||||||
public void requestFailed (String cause);
|
public void requestFailed (String cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extends the {@link InvocationListener} with a basic success
|
||||||
|
* callback.
|
||||||
|
*/
|
||||||
|
public static interface ConfirmListener extends InvocationListener
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Indicates that the request was successfully processed.
|
||||||
|
*/
|
||||||
|
public void requestProcessed ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extends the {@link InvocationListener} with a basic success
|
||||||
|
* callback that delivers a result object.
|
||||||
|
*/
|
||||||
|
public static interface ResultListener extends InvocationListener
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Indicates that the request was successfully processed.
|
||||||
|
*/
|
||||||
|
public void requestProcessed (Object result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user