Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.6.0)
E10684-07


oracle.adf.view.rich.model
Interface AsyncFetch


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

isSupportedFetchConstraint

boolean isSupportedFetchConstraint(java.lang.Class<?> fetchConstraintsClass)
Returns 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.

Parameters:
fetchConstraintsClass - fetch constraint implementation class to test
Returns:
true if the AsyncFetch model supports asynchronous fetch of constaints of the specified type.
See Also:
getAsyncFetcher(java.lang.Object)

getAsyncFetcher

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. If no fetcher is returned, the fetch for this constraint will not run in parallel.
Parameters:
fetchConstraint - Constraint that will be passed to the returned AsyncFetcher's isFetched and fetch methods.
Returns:
an AsyncFetcher capable of fetching data for this fetchConstraint
See Also:
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)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.6.0)
E10684-07


Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.