com.mathworks.mps.client

## Interface MWRequest<T>

- Type Parameters:
    `T` -

      public interface MWRequest<T>

  An asynchronous MATLAB execution request that has been attached to an MWClient.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `MWClient` | `getClient()` Get the client to which the request is attached.
    `java.util.concurrent.Future<T>` | `getFuture()` Returns a future object that can be used to get the result or cancel this request.
    `java.lang.String` | `getRequestURL()` Get the URL for this request
    `MWRequestState<T>` | `getState()` Get the current state of the request.
    `void` | `release()` Release resources on the server

- - ### Method Detail

    - #### getFuture

          java.util.concurrent.Future<T> getFuture()

      Returns a future object that can be used to get the result or cancel this request.

    - #### getClient

          MWClient getClient()

      Get the client to which the request is attached.

    - #### getState

          MWRequestState<T> getState()

      Get the current state of the request.

    - #### release

          void release()

      Release resources on the server

    - #### getRequestURL

          java.lang.String getRequestURL()

      Get the URL for this request
      Returns:
        String containing the URL for the request

Copyright 2010-2022 The MathWorks, Inc.