Tabnine Logo
GetTopicsByClusterRequestHeader.setCluster
Code IndexAdd Tabnine to your IDE (free)

How to use
setCluster
method
in
org.apache.rocketmq.common.protocol.header.GetTopicsByClusterRequestHeader

Best Java code snippets using org.apache.rocketmq.common.protocol.header.GetTopicsByClusterRequestHeader.setCluster (Showing top 3 results out of 315)

origin: apache/rocketmq

public TopicList getTopicsByCluster(final String cluster, final long timeoutMillis)
  throws RemotingException, MQClientException, InterruptedException {
  GetTopicsByClusterRequestHeader requestHeader = new GetTopicsByClusterRequestHeader();
  requestHeader.setCluster(cluster);
  RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.GET_TOPICS_BY_CLUSTER, requestHeader);
  RemotingCommand response = this.remotingClient.invokeSync(null, request, timeoutMillis);
  assert response != null;
  switch (response.getCode()) {
    case ResponseCode.SUCCESS: {
      byte[] body = response.getBody();
      if (body != null) {
        TopicList topicList = TopicList.decode(body, TopicList.class);
        return topicList;
      }
    }
    default:
      break;
  }
  throw new MQClientException(response.getCode(), response.getRemark());
}
origin: didi/DDMQ

public TopicList getTopicsByCluster(final String cluster, final long timeoutMillis)
  throws RemotingException, MQClientException, InterruptedException {
  GetTopicsByClusterRequestHeader requestHeader = new GetTopicsByClusterRequestHeader();
  requestHeader.setCluster(cluster);
  RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.GET_TOPICS_BY_CLUSTER, requestHeader);
  RemotingCommand response = this.remotingClient.invokeSync(null, request, timeoutMillis);
  assert response != null;
  switch (response.getCode()) {
    case ResponseCode.SUCCESS: {
      byte[] body = response.getBody();
      if (body != null) {
        TopicList topicList = TopicList.decode(body, TopicList.class);
        return topicList;
      }
    }
    default:
      break;
  }
  throw new MQClientException(response.getCode(), response.getRemark());
}
origin: org.apache.rocketmq/rocketmq-client

public TopicList getTopicsByCluster(final String cluster, final long timeoutMillis)
  throws RemotingException, MQClientException, InterruptedException {
  GetTopicsByClusterRequestHeader requestHeader = new GetTopicsByClusterRequestHeader();
  requestHeader.setCluster(cluster);
  RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.GET_TOPICS_BY_CLUSTER, requestHeader);
  RemotingCommand response = this.remotingClient.invokeSync(null, request, timeoutMillis);
  assert response != null;
  switch (response.getCode()) {
    case ResponseCode.SUCCESS: {
      byte[] body = response.getBody();
      if (body != null) {
        TopicList topicList = TopicList.decode(body, TopicList.class);
        return topicList;
      }
    }
    default:
      break;
  }
  throw new MQClientException(response.getCode(), response.getRemark());
}
org.apache.rocketmq.common.protocol.headerGetTopicsByClusterRequestHeadersetCluster

Popular methods of GetTopicsByClusterRequestHeader

  • <init>
  • getCluster

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • findViewById (Activity)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ImageIO (javax.imageio)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now