com.taobao.metamorphosis.tools.monitor.core
类 ReveiceResult

java.lang.Object
  继承者 com.taobao.metamorphosis.tools.monitor.core.ReveiceResult

public class ReveiceResult
extends Object

代表一次接收消息的结果


方法摘要
 void addMessage(Message message)
           
 Exception getException()
           
 List<Message> getMessages()
           
 long getOffset()
           
 Partition getPartition()
           
 String getServerUrl()
           
 String getTopic()
           
 boolean isSuccess()
          是否接收成功(接收到至少一条消息,并且没发生异常)
 void setException(Exception e)
           
 
从类 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.