MatlabProxyFactory.Request

public static interface Request

A request for a proxy. Because requests have no timeout, a Request has no concept of failure. Implementations of this class are unconditionally thread-safe. This interface is not intended to be implemented by users of matlabcontrol.

Author:Joshua Kaplan

Methods

cancel

public boolean cancel()

Attempts to cancel the request. If the request has already been completed or cannot successfully be canceled then false will be returned, otherwise true will be returned. If the request has already been successfully canceled then this method will have no effect and true will be returned.

Returns:if successfully cancelled

getProxyIdentifer

public Identifier getProxyIdentifer()

The identifier of the proxy associated with this request. If the proxy is created, then its identifier accessible via MatlabProxy.getIdentifier() will return true when tested for equivalence with the identifier returned by this method using Identifier.equals(java.lang.Object).

Returns:proxy’s identifier

isCancelled

public boolean isCancelled()

If the request has been successfully cancelled.

Returns:if successfully cancelled

isCompleted

public boolean isCompleted()

Returns true if the proxy has been created.

Returns:if the proxy has been created