Examples of shutdown()


Examples of com.alibaba.rocketmq.client.producer.DefaultMQProducer.shutdown()

                e.printStackTrace();
                Thread.sleep(1000);
            }
        }

        producer.shutdown();
    }
}
View Full Code Here

Examples of com.alibaba.rocketmq.client.producer.MQProducer.shutdown()

                }, orderId);

                System.out.println(sendResult);
            }

            producer.shutdown();
        }
        catch (MQClientException e) {
            e.printStackTrace();
        }
        catch (RemotingException e) {
View Full Code Here

Examples of com.alibaba.rocketmq.client.producer.TransactionMQProducer.shutdown()

        for (int i = 0; i < 100000; i++) {
            Thread.sleep(1000);
        }

        producer.shutdown();

    }
}
View Full Code Here

Examples of com.alibaba.rocketmq.tools.admin.DefaultMQAdminExt.shutdown()

        }
        catch (Exception e) {
            e.printStackTrace();
        }
        finally {
            defaultMQAdminExt.shutdown();
        }
    }


    public static void main(String[] args) {
View Full Code Here

Examples of com.alibaba.wasp.client.WaspAdmin.shutdown()

    } catch (ZooKeeperConnectionException e) {
      LOG.error("ZooKeeper not available");
      return -1;
    }
    try {
      adm.shutdown();
    } catch (Throwable t) {
      LOG.error("Failed to stop master", t);
      return -1;
    } finally {
      if (adm != null) {
View Full Code Here

Examples of com.alibaba.wasp.executor.ExecutorService.shutdown()

      // Wait on the handler removing the OPENED znode.
      while (am.getEntityGroupStates().isEntityGroupInTransition(
          ENTITYGROUPINFO))
        Threads.sleep(1);
    } finally {
      executor.shutdown();
      am.shutdown();
      // Clean up all znodes
      ZKAssign.deleteAllNodes(this.watcher);
    }
  }
View Full Code Here

Examples of com.alipay.bluewhale.core.work.WorkerShutdown.shutdown()

            WorkerShutdown shutdownHandle = getProcessHandle(pid);

            processMap.remove(pid);

            if (shutdownHandle != null) {
                shutdownHandle.shutdown();
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.aliyun.openservices.ons.api.Producer.shutdown()

            "TagA", // Tag, 相当于子Topic概念,应用可以自由设置,Consumer消费时,可以通过他来过滤消息
            "Hello ONS".getBytes()// 消息内容,二进制形式
                );
        SendResult sendResult = producer.send(msg);
        System.out.println(sendResult);
        producer.shutdown();
       
       

    }
}
View Full Code Here

Examples of com.aliyun.openservices.ons.api.order.OrderProducer.shutdown()

            }
        }, 100);

        System.out.println(sendResult);

        producer.shutdown();
    }

}
View Full Code Here

Examples of com.aliyun.openservices.ons.api.transaction.TransactionProducer.shutdown()

            }
        }, null);

        System.out.println(sendResult);

        producer.shutdown();
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.