Skip to content

Commit af9316a

Browse files
author
Simon MacMullen
committed
Merge pull request #28 from rabbitmq/bug26607
Clarify that ConnectionFactory#setRequestedHeartbeat sets a timeout
2 parents 0b782d8 + eca4a6b commit af9316a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,9 @@ public int getShutdownTimeout() {
343343
}
344344

345345
/**
346-
* Set the requested heartbeat.
347-
* @param requestedHeartbeat the initially requested heartbeat interval, in seconds; zero for none
346+
* Set the requested heartbeat timeout. Heartbeat frames will be sent at about 1/2 the timeout interval.
347+
* @param requestedHeartbeat the initially requested heartbeat timeout, in seconds; zero for none
348+
* @see <a href="http://rabbitmq.com/heartbeats.html">RabbitMQ Heartbeats Guide</a>
348349
*/
349350
public void setRequestedHeartbeat(int requestedHeartbeat) {
350351
this.requestedHeartbeat = requestedHeartbeat;

0 commit comments

Comments
 (0)