public class JDBCConsumer extends Object implements MessageConsumer
| Constructor and Description |
|---|
JDBCConsumer(JDBCMessageStore store)
Initialize consumer
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ack()
Ack on success message sending by processor
|
boolean |
cleanup()
Cleanup the consumer
|
String |
getId()
Get consumer id
|
boolean |
isAlive()
Check JDBC consumer is alive
|
MessageContext |
receive()
Select and return the first element in current table
|
void |
setId(int id)
Set consumer id
|
public JDBCConsumer(JDBCMessageStore store)
store - - JDBC message storepublic MessageContext receive()
receive in interface MessageConsumerpublic boolean ack()
ack in interface MessageConsumerpublic boolean cleanup()
cleanup in interface MessageConsumerpublic boolean isAlive()
isAlive in interface MessageConsumerpublic void setId(int id)
setId in interface MessageConsumerid - IDpublic String getId()
getId in interface MessageConsumerCopyright © 2005–2019 Apache Software Foundation. All rights reserved.