public class SIRequestImpl extends Object implements SIRequest
SIRequestImpl registers itself at the time of the
asynchronous call for a single request and is automatically
unregistered when the request is completed. Applications may
identify individual requests when the methods of this interface are
called by registering a unique SIRequestImpl for each
simultaneous asynchronous 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.
| Constructor and Description |
|---|
SIRequestImpl(SIRequestor requestor,
Locator locator) |
SIRequestImpl(SIRequestor requestor,
Locator locator,
int requestKind) |
SIRequestImpl(SIRequestor requestor,
Locator locator,
int requestKind,
Object userData) |
SIRequestImpl(SIRequestor requestor,
Locator locator,
int requestKind,
Object[] userData) |
SIRequestImpl(SIRequestor requestor,
Locator locator,
int requestKind,
Object userData1,
Object userData2) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels a pending request.
|
boolean |
equals(SIElement element) |
Locator |
getLocator() |
int |
getRequestKind() |
Object |
getUserData(int slot) |
boolean |
isExpired() |
void |
notifyFailure(SIRequestFailureType reason)
Notifies the
SIRequestImpl of unsuccessful asynchronous
SI retrieval. |
void |
notifySuccess(SIRetrievable[] result)
Notifies the
SIRequestImpl of successful asynchronous
SI retrieval. |
public SIRequestImpl(SIRequestor requestor, Locator locator)
public SIRequestImpl(SIRequestor requestor, Locator locator, int requestKind)
public SIRequestImpl(SIRequestor requestor, Locator locator, int requestKind, Object userData)
public SIRequestImpl(SIRequestor requestor, Locator locator, int requestKind, Object userData1, Object userData2)
public SIRequestImpl(SIRequestor requestor, Locator locator, int requestKind, Object[] userData)
public Locator getLocator()
public int getRequestKind()
public Object getUserData(int slot)
public boolean isExpired()
public void notifySuccess(SIRetrievable[] result)
SIRequestImpl of successful asynchronous
SI retrieval.result - The previously requested data.public void notifyFailure(SIRequestFailureType reason)
SIRequestImpl of unsuccessful asynchronous
SI retrieval.reason - The reason why the asynchronous request failed.public boolean cancel()
notifyFailture method of
the SIRequestor that initiated the asynchronous
retrieval will be called with the
SIRequestFailureType code of
CANCELED. If the request is no longer pending then no
action is performed.cancel in interface SIRequestTrue if the request was pending and
successfully canceled; false otherwise.SIRequestor.notifyFailure(javax.tv.service.SIRequestFailureType),
SIRequestFailureType.CANCELEDpublic boolean equals(SIElement element)
Copyright © 2012 code4tv.com. All Rights Reserved.