com.cloudhopper.commons.util.windowing.WindowFuture.getWindowSize()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中com.cloudhopper.commons.util.windowing.WindowFuture.getWindowSize()方法的一些代码示例,展示了WindowFuture.getWindowSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowFuture.getWindowSize()方法的具体详情如下:
包路径:com.cloudhopper.commons.util.windowing.WindowFuture
类名称:WindowFuture
方法名:getWindowSize

WindowFuture.getWindowSize介绍

[英]Returns the size of the window (number of requests in it) after this request was added. Useful for calculating an estimated response time just for this request.
[中]返回添加此请求后窗口的大小(其中的请求数)。用于计算仅此请求的估计响应时间。

代码示例

代码示例来源:origin: com.fizzed/ch-smpp

@Override
public int getWindowSize() {
  return future.getWindowSize();
}

代码示例来源:origin: twitter-archive/cloudhopper-smpp

@Override
public int getWindowSize() {
  return future.getWindowSize();
}

代码示例来源:origin: org.restcomm.smpp/ch-smpp

@Override
public int getWindowSize() {
  return future.getWindowSize();
}

代码示例来源:origin: com.cloudhopper/ch-smpp

@Override
public int getWindowSize() {
  return future.getWindowSize();
}

代码示例来源:origin: twitter-archive/cloudhopper-smpp

@Override
public long getEstimatedProcessingTime() {
  long responseTime = getResponseTime();
  if (responseTime == 0 || future.getWindowSize() == 0) {
    return 0;
  }
  return (responseTime / future.getWindowSize());
}

代码示例来源:origin: com.fizzed/ch-smpp

@Override
public long getEstimatedProcessingTime() {
  long responseTime = getResponseTime();
  if (responseTime == 0 || future.getWindowSize() == 0) {
    return 0;
  }
  return (responseTime / future.getWindowSize());
}

代码示例来源:origin: com.cloudhopper/ch-smpp

@Override
public long getEstimatedProcessingTime() {
  long responseTime = getResponseTime();
  if (responseTime == 0 || future.getWindowSize() == 0) {
    return 0;
  }
  return (responseTime / future.getWindowSize());
}

代码示例来源:origin: org.restcomm.smpp/ch-smpp

@Override
public long getEstimatedProcessingTime() {
  long responseTime = getResponseTime();
  if (responseTime == 0 || future.getWindowSize() == 0) {
    return 0;
  }
  return (responseTime / future.getWindowSize());
}

代码示例来源:origin: twitter-archive/cloudhopper-smpp

if (future != null) {
  logger.trace("Found a future in the window for seqNum [{}]", receivedPduSeqNum);
  this.countReceiveResponsePdu(responsePdu, future.getOfferToAcceptTime(), future.getAcceptToDoneTime(), (future.getAcceptToDoneTime() / future.getWindowSize()));

代码示例来源:origin: org.restcomm.smpp/ch-smpp

if (future != null) {
  logger.trace("Found a future in the window for seqNum [{}]", receivedPduSeqNum);
  this.countReceiveResponsePdu(responsePdu, future.getOfferToAcceptTime(), future.getAcceptToDoneTime(), (future.getAcceptToDoneTime() / future.getWindowSize()));

代码示例来源:origin: com.fizzed/ch-smpp

if (future != null) {
  logger.trace("Found a future in the window for seqNum [{}]", receivedPduSeqNum);
  this.countReceiveResponsePdu(responsePdu, future.getOfferToAcceptTime(), future.getAcceptToDoneTime(), (future.getAcceptToDoneTime() / future.getWindowSize()));

代码示例来源:origin: com.cloudhopper/ch-smpp

if (future != null) {
  logger.trace("Found a future in the window for seqNum [{}]", receivedPduSeqNum);
  this.countReceiveResponsePdu(responsePdu, future.getOfferToAcceptTime(), future.getAcceptToDoneTime(), (future.getAcceptToDoneTime() / future.getWindowSize()));

相关文章