/*
* *************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
* *************************************************************************************
*/
package com.espertech.esper.epl.db;
import com.espertech.esper.client.EventBean;
import com.espertech.esper.collection.MultiKey;
import java.util.List;
import java.util.Map;
public class SupportPollingStrategy implements PollExecStrategy
{
private Map<MultiKey<Object>, List<EventBean>> results;
public SupportPollingStrategy(Map<MultiKey<Object>, List<EventBean>> results)
{
this.results = results;
}
public void start()
{
}
public List<EventBean> poll(Object[] lookupValues)
{
return results.get(new MultiKey<Object>(lookupValues));
}
public void done()
{
}
public void destroy()
{
}
}