Codota Logo
WipeWritePermOfBrokerResponseHeader.setWipeTopicCount
Code IndexAdd Codota to your IDE (free)

How to use
setWipeTopicCount
method
in
org.apache.rocketmq.common.protocol.header.namesrv.WipeWritePermOfBrokerResponseHeader

Best Java code snippets using org.apache.rocketmq.common.protocol.header.namesrv.WipeWritePermOfBrokerResponseHeader.setWipeTopicCount (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: apache/rocketmq

private RemotingCommand wipeWritePermOfBroker(ChannelHandlerContext ctx,
  RemotingCommand request) throws RemotingCommandException {
  final RemotingCommand response = RemotingCommand.createResponseCommand(WipeWritePermOfBrokerResponseHeader.class);
  final WipeWritePermOfBrokerResponseHeader responseHeader = (WipeWritePermOfBrokerResponseHeader) response.readCustomHeader();
  final WipeWritePermOfBrokerRequestHeader requestHeader =
    (WipeWritePermOfBrokerRequestHeader) request.decodeCommandCustomHeader(WipeWritePermOfBrokerRequestHeader.class);
  int wipeTopicCnt = this.namesrvController.getRouteInfoManager().wipeWritePermOfBrokerByLock(requestHeader.getBrokerName());
  log.info("wipe write perm of broker[{}], client: {}, {}",
    requestHeader.getBrokerName(),
    RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
    wipeTopicCnt);
  responseHeader.setWipeTopicCount(wipeTopicCnt);
  response.setCode(ResponseCode.SUCCESS);
  response.setRemark(null);
  return response;
}
origin: didi/DDMQ

private RemotingCommand wipeWritePermOfBroker(ChannelHandlerContext ctx,
  RemotingCommand request) throws RemotingCommandException {
  final RemotingCommand response = RemotingCommand.createResponseCommand(WipeWritePermOfBrokerResponseHeader.class);
  final WipeWritePermOfBrokerResponseHeader responseHeader = (WipeWritePermOfBrokerResponseHeader) response.readCustomHeader();
  final WipeWritePermOfBrokerRequestHeader requestHeader =
    (WipeWritePermOfBrokerRequestHeader) request.decodeCommandCustomHeader(WipeWritePermOfBrokerRequestHeader.class);
  int wipeTopicCnt = this.namesrvController.getRouteInfoManager().wipeWritePermOfBrokerByLock(requestHeader.getBrokerName());
  log.info("wipe write perm of broker[{}], client: {}, {}",
    requestHeader.getBrokerName(),
    RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
    wipeTopicCnt);
  responseHeader.setWipeTopicCount(wipeTopicCnt);
  response.setCode(ResponseCode.SUCCESS);
  response.setRemark(null);
  return response;
}
org.apache.rocketmq.common.protocol.header.namesrvWipeWritePermOfBrokerResponseHeadersetWipeTopicCount

Popular methods of WipeWritePermOfBrokerResponseHeader

  • getWipeTopicCount

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Collectors (java.util.stream)
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now