com.latencybusters.jms
Class LBMMessageConsumer
java.lang.Object
com.latencybusters.jms.LBMMessageConsumer
- All Implemented Interfaces:
- javax.jms.MessageConsumer
- Direct Known Subclasses:
- LBMQueueReciever, UMEMessageConsumer
public class LBMMessageConsumer
- extends java.lang.Object
- implements javax.jms.MessageConsumer
Constructor Summary |
LBMMessageConsumer()
|
LBMMessageConsumer(com.latencybusters.lbm.LBMContext myContext,
com.latencybusters.lbm.LBMEventQueue evq,
java.util.ArrayList<NameValue> props,
LBMDestination destination,
boolean isActive,
int acknowledgeMode,
LBMSession session,
boolean transacted,
java.lang.String cfName,
java.lang.String messageSelector)
This is an internal Method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listener
protected javax.jms.MessageListener listener
myContext
protected com.latencybusters.lbm.LBMContext myContext
evq
protected com.latencybusters.lbm.LBMEventQueue evq
acknowledgeMode
protected int acknowledgeMode
transacted
protected boolean transacted
cfName
protected java.lang.String cfName
rcvCreationDelay
protected int rcvCreationDelay
messageSelector
protected java.lang.String messageSelector
LBMMessageConsumer
public LBMMessageConsumer()
LBMMessageConsumer
public LBMMessageConsumer(com.latencybusters.lbm.LBMContext myContext,
com.latencybusters.lbm.LBMEventQueue evq,
java.util.ArrayList<NameValue> props,
LBMDestination destination,
boolean isActive,
int acknowledgeMode,
LBMSession session,
boolean transacted,
java.lang.String cfName,
java.lang.String messageSelector)
throws javax.jms.JMSException
- This is an internal Method.
- Throws:
javax.jms.JMSException
init
protected void init()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
commit
public void commit()
rollback
public void rollback()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
isActive
public boolean isActive()
isOpen
public boolean isOpen()
start
public void start()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
stop
public void stop()
addUnAckedMessage
public void addUnAckedMessage(LBMMessage m)
acked
public void acked(LBMMessage m)
removeCallback
protected void removeCallback()
close
public void close()
throws javax.jms.JMSException
- Specified by:
close
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
getMessageListener
public javax.jms.MessageListener getMessageListener()
- Specified by:
getMessageListener
in interface javax.jms.MessageConsumer
getMessageSelector
public java.lang.String getMessageSelector()
throws javax.jms.JMSException
- This method has not been implemented.
- Specified by:
getMessageSelector
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
receive
public javax.jms.Message receive()
throws javax.jms.JMSException
- Specified by:
receive
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
receive
public javax.jms.Message receive(long timeout)
throws javax.jms.JMSException
- Specified by:
receive
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
receiveNoWait
public javax.jms.Message receiveNoWait()
throws javax.jms.JMSException
- Specified by:
receiveNoWait
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
setMessageListener
public void setMessageListener(javax.jms.MessageListener listener)
- Specified by:
setMessageListener
in interface javax.jms.MessageConsumer
getName
public java.lang.String getName()
getSession
protected LBMSession getSession()
printAttr
protected void printAttr(com.latencybusters.lbm.LBMReceiverAttributes sattr)
logReceiverConfigOptions
protected void logReceiverConfigOptions(com.latencybusters.lbm.LBMConfigOption[] options)
dumpAttributeList
public com.latencybusters.lbm.LBMConfigOption[] dumpAttributeList()
isTransacted
public boolean isTransacted()
- Returns:
- the transacted
setTransacted
public void setTransacted(boolean transacted)
- Parameters:
transacted
- the transacted to set
addTransaction
public void addTransaction(LBMMessage msg)
getDefaultMessageProp
public int getDefaultMessageProp()
All of the documentation and software included in this and any other Informatica, Inc. "Ultra Messaging" Release is Copyright (C) 2004-2014, Informatica Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted only as covered by the terms of a valid software license agreement with Informatica Inc. Copyright © 2004-2014, Informatica, Inc. All Rights Reserved.