congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
QueryTopicConsumeByWhoRequestHeader.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.rocketmq.common.protocol.header.QueryTopicConsumeByWhoRequestHeader
constructor

Best Java code snippets using org.apache.rocketmq.common.protocol.header.QueryTopicConsumeByWhoRequestHeader.<init> (Showing top 3 results out of 315)

origin: apache/rocketmq

public GroupList queryTopicConsumeByWho(final String addr, final String topic, final long timeoutMillis)
  throws RemotingConnectException, RemotingSendRequestException, RemotingTimeoutException, InterruptedException,
  MQBrokerException {
  QueryTopicConsumeByWhoRequestHeader requestHeader = new QueryTopicConsumeByWhoRequestHeader();
  requestHeader.setTopic(topic);
  RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.QUERY_TOPIC_CONSUME_BY_WHO, requestHeader);
  RemotingCommand response = this.remotingClient.invokeSync(MixAll.brokerVIPChannel(this.clientConfig.isVipChannelEnabled(), addr),
    request, timeoutMillis);
  switch (response.getCode()) {
    case ResponseCode.SUCCESS: {
      GroupList groupList = GroupList.decode(response.getBody(), GroupList.class);
      return groupList;
    }
    default:
      break;
  }
  throw new MQBrokerException(response.getCode(), response.getRemark());
}
origin: didi/DDMQ

public GroupList queryTopicConsumeByWho(final String addr, final String topic, final long timeoutMillis)
  throws RemotingConnectException, RemotingSendRequestException, RemotingTimeoutException, InterruptedException,
  MQBrokerException {
  QueryTopicConsumeByWhoRequestHeader requestHeader = new QueryTopicConsumeByWhoRequestHeader();
  requestHeader.setTopic(topic);
  RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.QUERY_TOPIC_CONSUME_BY_WHO, requestHeader);
  RemotingCommand response = this.remotingClient.invokeSync(MixAll.brokerVIPChannel(this.clientConfig.isVipChannelEnabled(), addr),
    request, timeoutMillis);
  switch (response.getCode()) {
    case ResponseCode.SUCCESS: {
      GroupList groupList = GroupList.decode(response.getBody(), GroupList.class);
      return groupList;
    }
    default:
      break;
  }
  throw new MQBrokerException(response.getCode(), response.getRemark());
}
origin: org.apache.rocketmq/rocketmq-client

public GroupList queryTopicConsumeByWho(final String addr, final String topic, final long timeoutMillis)
  throws RemotingConnectException, RemotingSendRequestException, RemotingTimeoutException, InterruptedException,
  MQBrokerException {
  QueryTopicConsumeByWhoRequestHeader requestHeader = new QueryTopicConsumeByWhoRequestHeader();
  requestHeader.setTopic(topic);
  RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.QUERY_TOPIC_CONSUME_BY_WHO, requestHeader);
  RemotingCommand response = this.remotingClient.invokeSync(MixAll.brokerVIPChannel(this.clientConfig.isVipChannelEnabled(), addr),
    request, timeoutMillis);
  switch (response.getCode()) {
    case ResponseCode.SUCCESS: {
      GroupList groupList = GroupList.decode(response.getBody(), GroupList.class);
      return groupList;
    }
    default:
      break;
  }
  throw new MQBrokerException(response.getCode(), response.getRemark());
}
org.apache.rocketmq.common.protocol.headerQueryTopicConsumeByWhoRequestHeader<init>

Popular methods of QueryTopicConsumeByWhoRequestHeader

  • getTopic
  • setTopic

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JOptionPane (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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