All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.espertech.esper.runtime.client.option.StatementUserObjectRuntimeOption Maven / Gradle / Ivy

/*
 ***************************************************************************************
 *  Copyright (C) 2006 EsperTech, Inc. All rights reserved.                            *
 *  http://www.espertech.com/esper                                                     *
 *  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.runtime.client.option;

/**
 * Implement this interface to provide a custom user object at runtime for statements when they are deployed.
 */
public interface StatementUserObjectRuntimeOption {
    /**
     * Returns the user object to assign to a newly-deployed statement.
     * 

* Implementations would typically interrogate the context object EPL expression * or module and module item information and determine the right user object to assign. *

*

* When using HA the returned object must implement the Serializable interface. *

* * @param env the statement's deployment context * @return user object or null if none needs to be assigned */ public Object getUserObject(StatementUserObjectRuntimeContext env); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy