Package matlabcontrol
Interface MatlabProxyFactory.Request
-
- Enclosing class:
- MatlabProxyFactory
public static interface MatlabProxyFactory.RequestA request for a proxy. Because requests have no timeout, aRequesthas no concept of failure.
Implementations of this class are unconditionally thread-safe.
WARNING: This interface is not intended to be implemented by users of matlabcontrol. Methods may be added to this interface, and these additions will not be considered breaking binary compatibility.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancel()Attempts to cancel the request.MatlabProxy.IdentifiergetProxyIdentifer()The identifier of the proxy associated with this request.booleanisCancelled()If the request has been successfully cancelled.booleanisCompleted()Returnstrueif the proxy has been created.
-
-
-
Method Detail
-
getProxyIdentifer
MatlabProxy.Identifier getProxyIdentifer()
The identifier of the proxy associated with this request. If the proxy is created, then its identifier accessible viaMatlabProxy.getIdentifier()will returntruewhen tested for equivalence with the identifier returned by this method usingMatlabProxy.Identifier.equals(java.lang.Object).- Returns:
- proxy's identifier
-
cancel
boolean cancel()
Attempts to cancel the request. If the request has already been completed or cannot successfully be canceled thenfalsewill be returned, otherwisetruewill be returned. If the request has already been successfully canceled then this method will have no effect andtruewill be returned.- Returns:
- if successfully cancelled
-
isCancelled
boolean isCancelled()
If the request has been successfully cancelled.- Returns:
- if successfully cancelled
-
isCompleted
boolean isCompleted()
Returnstrueif the proxy has been created.- Returns:
- if the proxy has been created
-
-