Skip navigation.
Downloads | Product Documentation | Support

# JmsConsumer.h

Go to the documentation of this file.

    00001
    00009 #ifndef _JMS_CONSUMER_H
    00010 #define _JMS_CONSUMER_H 1
    00011
    00012 #include <JmsCommon.h>
    00013 #include <JmsCommon.h>
    00014 #include <JmsMessage.h>
    00015 #include <JmsTypes.h>
    00016
    00020 typedef struct JmsConsumer JmsConsumer;
    00021
    00022 #ifdef __cplusplus
    00023 extern "C" {
    00024 #endif /* __cplusplus */
    00025
    00039 extern int JMSENTRY JmsConsumerGetSelector(
    00040   JmsConsumer  * consumer,
    00041   JmsString    * selector,
    00042   JMS64I              flags
    00043 );
    00044
    00060 extern int JMSENTRY JmsConsumerGetMessageListener(
    00061   JmsConsumer  * consumer,
    00062   void           (** listener)(JmsMessage *, void *, JMS64I),
    00063   void           **argument,
    00064   JMS64I              flags
    00065 );
    00066
    00093 extern int JMSENTRY JmsConsumerSetMessageListener(
    00094   JmsConsumer  * consumer,
    00095   void         (* listener)(JmsMessage *, void *, JMS64I),
    00096   void         *argument,
    00097   JMS64I              flags
    00098 );
    00099
    00116 extern int JMSENTRY JmsConsumerReceive(
    00117   JmsConsumer  * consumer,
    00118   JMS64I         timeout,
    00119   JmsMessage **message,
    00120   JMS64I              flags
    00121 );
    00122
    00143 extern int JMSENTRY JmsConsumerClose(
    00144   JmsConsumer  * consumer,
    00145   JMS64I              flags
    00146 );
    00147
    00148 #ifdef __cplusplus
    00149 }
    00150 #endif /* __cplusplus */
    00151 #endif /* _JMS_CONSUMER_H */

Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.