public class OrderProducerImpl extends ONSClientAbstract implements OrderProducer
nameServerAddr, namespaceId, properties, sessionCredentials, started, traceDispatcher, WSADDR_INTERNAL, WSADDR_INTERNAL_TIMEOUTMILLS, WSADDR_INTERNET, WSADDR_INTERNET_TIMEOUTMILLS| Constructor and Description |
|---|
OrderProducerImpl(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
SendResult |
send(Message message,
String shardingKey) |
protected void |
setTopicUnitFlagToContext(InvocationContext context,
Message message)
但单元化架构下,从Topic的sysFlag信息提取出单元标设置到上下文中
|
void |
shutdown() |
void |
start() |
protected void |
updateNameServerAddr(String newAddrs) |
buildIntanceName, checkONSProducerServiceState, executePostHandle, getNameServerAddr, getNamespace, isClosed, isStarted, preHandle, updateCredentialclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisClosed, isStarted, updateCredentialpublic OrderProducerImpl(Properties properties)
protected void updateNameServerAddr(String newAddrs)
updateNameServerAddr in class ONSClientAbstractpublic void start()
start in interface Adminstart in class ONSClientAbstractpublic void shutdown()
shutdown in interface Adminshutdown in class ONSClientAbstractpublic SendResult send(Message message, String shardingKey)
send in interface OrderProducerprotected void setTopicUnitFlagToContext(InvocationContext context, Message message)
Copyright © 2012–2021. All rights reserved.