SIRequestor

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.tv.service
Interface SIRequestor

    public interface SIRequestor

This interface is implemented by application classes to receive the results of asynchronous SI retrieval requests. The `SIRequestor` registers itself at the time of the asynchronous call for a single request and is automatically unregistered when the request is completed. Applications can disambiguate retrieval operations by registering a unique `SIRequestor` for each retrieval request.

The asynchronous SI retrieval mechanisms invoke the methods of this interface using system threads that are guaranteed to not hold locks on application objects.

Method Summary
`void` | `notifyFailure(SIRequestFailureType reason)` Notifies the `SIRequestor` of unsuccessful asynchronous SI retrieval.
`void` | `notifySuccess(SIRetrievable[] result)` Notifies the `SIRequestor` of successful asynchronous SI retrieval.

Method Detail

### notifySuccess

    void notifySuccess(SIRetrievable[] result)

  Notifies the `SIRequestor` of successful asynchronous SI retrieval.

  Parameters:
    `result` - The previously requested data.

### notifyFailure

    void notifyFailure(SIRequestFailureType reason)

  Notifies the `SIRequestor` of unsuccessful asynchronous SI retrieval.

  Parameters:
    `reason` - The reason why the asynchronous request failed.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD