net.esper.eql.core
Class ViewResourceDelegateImpl
java.lang.Object
net.esper.eql.core.ViewResourceDelegateImpl
- All Implemented Interfaces:
- ViewResourceDelegate
public class ViewResourceDelegateImpl
- extends Object
- implements ViewResourceDelegate
Coordinates between view factories and requested resource (by expressions) the
availability of view resources to expressions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewResourceDelegateImpl
public ViewResourceDelegateImpl(ViewFactoryChain[] viewFactories)
- Ctor.
- Parameters:
viewFactories
- array of view factory chains, one for each stream
requestCapability
public boolean requestCapability(int streamNumber,
ViewCapability requestedCabability,
ViewResourceCallback resourceCallback)
- Description copied from interface:
ViewResourceDelegate
- Request a view resource.
- Specified by:
requestCapability
in interface ViewResourceDelegate
- Parameters:
streamNumber
- is the stream number to provide the resourcerequestedCabability
- describes the view capability requiredresourceCallback
- for the delegate to supply the resource
- Returns:
- true to indicate the resource can be granted