public class IMHConsumer extends java.lang.Object implements MessageHubConsumer
Constructor and Description |
---|
IMHConsumer(java.util.Properties consumerProperties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit() |
void |
commit(java.util.Map md) |
java.util.Map<java.lang.String,java.lang.Object> |
getConnectionMetaData() |
Message |
getMessage() |
java.util.List<Message> |
getMessages() |
java.lang.Long |
position(int partition) |
void |
seek(int partition,
long offset) |
public void commit() throws MXException
commit
in interface MessageHubConsumer
MXException
public void commit(java.util.Map md) throws MXException
commit
in interface MessageHubConsumer
MXException
public void close()
close
in interface MessageHubConsumer
public java.util.List<Message> getMessages() throws MXException
getMessages
in interface MessageHubConsumer
MXException
public Message getMessage() throws MXException
MXException
public java.util.Map<java.lang.String,java.lang.Object> getConnectionMetaData() throws MXException
getConnectionMetaData
in interface MessageHubConsumer
MXException
public java.lang.Long position(int partition)
public void seek(int partition, long offset)