com.sun.jini.example.cancellation
Interface CallCancellation


public interface CallCancellation

CallCancellation is an abstraction to support cancelling a call executing in a thread. A proxy that supports cancelling remote method invocations will implement this interface.

Author:
Sun Microsystems, Inc.

Method Summary
 void cancelCall(java.lang.Thread t)
          Attempts to cancel the call executing in the given thread t.
 

Method Detail

cancelCall

public void cancelCall(java.lang.Thread t)
                throws NoSuchCallException,
                       java.rmi.RemoteException
Attempts to cancel the call executing in the given thread t. A cancel request is advisory; a server may ignore the request for cancellation.

An executing remote method that is cancelled via a call to this method will throw CallCancelledException as a result of its execution independent of the execution status of the method (that is, whether the call reached the server, or executed partially or completely on the server).

Parameters:
t - the thread executing the call to cancel
Throws:
NoSuchCallException - if a call is not excecuting in the given thread t
java.rmi.RemoteException - if an problem occurs sending the cancellation request


Copyright © 2003 Sun Microsystems, Inc. All Rights Reserved.