com.taobao.metamorphosis.tools.monitor.core
类 ReveiceResult
java.lang.Object
com.taobao.metamorphosis.tools.monitor.core.ReveiceResult
public class ReveiceResult
- extends Object
代表一次接收消息的结果
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMessages
public List<Message> getMessages()
addMessage
public void addMessage(Message message)
getException
public Exception getException()
setException
public void setException(Exception e)
isSuccess
public boolean isSuccess()
- 是否接收成功(接收到至少一条消息,并且没发生异常)
getTopic
public String getTopic()
getPartition
public Partition getPartition()
getOffset
public long getOffset()
getServerUrl
public String getServerUrl()
Copyright © 2010–2013. All rights reserved.