com.rabbitmq.client.Connection.getFrameMax()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(174)

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

Connection.getFrameMax介绍

暂无

代码示例

代码示例来源:origin: com.github.combinedmq/combinedmq

@Override
public int getFrameMax() {
  return connection.getFrameMax();
}

代码示例来源:origin: spring-projects/spring-amqp

/**
 * Return the negotiated frame_max.
 * @param connectionFactory the connection factory.
 * @return the size or -1 if it cannot be determined.
 */
public static int getMaxFrame(ConnectionFactory connectionFactory) {
  try (Connection	connection = connectionFactory.createConnection()) {
    com.rabbitmq.client.Connection rcon = connection.getDelegate();
    if (rcon != null) {
      return rcon.getFrameMax();
    }
  }
  catch (RuntimeException e) {
    // NOSONAR
  }
  return -1;
}

代码示例来源:origin: org.springframework.amqp/spring-rabbit

/**
 * Return the negotiated frame_max.
 * @param connectionFactory the connection factory.
 * @return the size or -1 if it cannot be determined.
 */
public static int getMaxFrame(ConnectionFactory connectionFactory) {
  try (Connection	connection = connectionFactory.createConnection()) {
    com.rabbitmq.client.Connection rcon = connection.getDelegate();
    if (rcon != null) {
      return rcon.getFrameMax();
    }
  }
  catch (RuntimeException e) {
    // NOSONAR
  }
  return -1;
}

相关文章