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

com.espertech.esperio.jms.JMSMessageUnmarshaller 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.esperio.jms;

import com.espertech.esper.common.client.EPException;
import com.espertech.esper.runtime.internal.kernel.service.EPRuntimeSPI;

import javax.jms.Message;

/**
 * Interface for a un-marshaller that takes a JMS message and creates or wraps an event object for use to
 * send as an event into an runtime instance.
 */
public interface JMSMessageUnmarshaller {
    /**
     * Unmarshal the given JMS message into an object for sending into the runtime.
     *
     * @param runtime runtime
     * @param message is the message to unmarshal
     * @return event to send to runtime
     * @throws EPException if the unmarshal operation failed
     */
    public Object unmarshal(EPRuntimeSPI runtime, Message message) throws EPException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy