public class IMHBrowser extends java.lang.Object implements MessageHubBrowser
Constructor and Description |
---|
IMHBrowser(java.util.Properties consumerProperties) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Message> |
browseMessages(long maxCount,
long skipCount) |
void |
close() |
java.util.Map<java.lang.String,java.lang.Object> |
getConnectionMetaData() |
static void |
main(java.lang.String[] args) |
java.lang.Long |
position(int partition) |
void |
seek(int partition,
long offset) |
public void close() throws MXException
close
in interface MessageHubBrowser
MXException
public java.util.Map<java.lang.String,java.lang.Object> getConnectionMetaData() throws MXException
getConnectionMetaData
in interface MessageHubBrowser
MXException
public java.lang.Long position(int partition)
public void seek(int partition, long offset)
public static void main(java.lang.String[] args) throws java.io.UnsupportedEncodingException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.io.UnsupportedEncodingException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public java.util.List<Message> browseMessages(long maxCount, long skipCount) throws MXException
browseMessages
in interface MessageHubBrowser
MXException