|
Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1.7.0) E10684-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncFetch
Interface to be implemented by the data models that support fetching data on the thread other then the request thread. If isAsynchronousFetchSupported() returns true, the framework may call fetch() on a different thread. A model should implement this interface and should return from isAsynchronousFetchSupported() only if:
Method Summary | |
---|---|
AsyncFetcher |
getAsyncFetcher(java.lang.Object fetchConstraint) Returns an AsyncFetcher instance capable of fetching data for the specified fetchConstraint or null if this fetchConstraint type is not supported. |
boolean |
isSupportedFetchConstraint(java.lang.Class<?> fetchConstraintsClass) Returns true if the AsyncFetch model supports asynchronous fetch of constaints of fetchConstraintsClass type. |
Method Detail |
---|
boolean isSupportedFetchConstraint(java.lang.Class<?> fetchConstraintsClass)
true
if the AsyncFetch model supports asynchronous fetch of constaints of fetchConstraintsClass type.
This method is designed to aid Renderers registering for data streaming in the case where the Renderer could register any of a number of different context objects and wants to pick a fetch constraint class supported for parallel execution by the AsyncFetch model.
fetchConstraintsClass
- fetch constraint implementation class to testtrue
if the AsyncFetch model supports asynchronous fetch of constaints of the specified type.getAsyncFetcher(java.lang.Object)
AsyncFetcher getAsyncFetcher(java.lang.Object fetchConstraint)
null
if this fetchConstraint type is not supported. If no fetcher is returned, the fetch for this constraint will not run in parallel.fetchConstraint
- Constraint that will be passed to the returned AsyncFetcher's isFetched
and fetch
methods.AsyncFetcher.isFetched(oracle.adf.view.rich.model.AsyncFetch, java.lang.Object)
, AsyncFetcher.fetch(oracle.adf.view.rich.model.AsyncFetch, java.lang.Object, java.lang.Object)
|
Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1.7.0) E10684-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |