com.aliyun.openservices.ons.api.bean
类 ProducerBean

java.lang.Object
  继承者 com.aliyun.openservices.ons.api.bean.ProducerBean
所有已实现的接口:
Admin, Producer

public class ProducerBean
extends java.lang.Object
implements Producer


构造方法摘要
ProducerBean()
           
 
方法摘要
 java.util.Properties getProperties()
           
 SendResult send(Message message)
          同步发送消息,只要不抛异常就表示成功
 void sendOneway(Message message)
          发送消息,Oneway形式,服务器不应答,无法保证消息是否成功到达服务器
 void setProperties(java.util.Properties properties)
           
 void shutdown()
          关闭服务
 void start()
          启动服务
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ProducerBean

public ProducerBean()
方法详细信息

start

public void start()
从接口 Producer 复制的描述
启动服务

指定者:
接口 Producer 中的 start

shutdown

public void shutdown()
从接口 Producer 复制的描述
关闭服务

指定者:
接口 Producer 中的 shutdown

send

public SendResult send(Message message)
从接口 Producer 复制的描述
同步发送消息,只要不抛异常就表示成功

指定者:
接口 Producer 中的 send
返回:
发送结果,含消息Id

sendOneway

public void sendOneway(Message message)
从接口 Producer 复制的描述
发送消息,Oneway形式,服务器不应答,无法保证消息是否成功到达服务器

指定者:
接口 Producer 中的 sendOneway

getProperties

public java.util.Properties getProperties()

setProperties

public void setProperties(java.util.Properties properties)


Copyright © 2012-2014. All Rights Reserved.