本文整理了Java中com.rabbitmq.client.Connection.getFrameMax()
方法的一些代码示例,展示了Connection.getFrameMax()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connection.getFrameMax()
方法的具体详情如下:
包路径:com.rabbitmq.client.Connection
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!