Skip to content

Commit 854240b

Browse files
Introduce Envelope#toString
Contributed by Michał Kiędyś in #8
1 parent 0f42450 commit 854240b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/com/rabbitmq/client/Envelope.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,14 @@ public String getExchange() {
7070
public String getRoutingKey() {
7171
return _routingKey;
7272
}
73+
74+
@Override public String toString() {
75+
StringBuilder sb = new StringBuilder();
76+
sb.append("Envelope(deliveryTag=").append(_deliveryTag);
77+
sb.append(", redeliver=").append(_redeliver);
78+
sb.append(", exchange=").append(_exchange);
79+
sb.append(", routingKey=").append(_routingKey);
80+
sb.append(")");
81+
return sb.toString();
82+
}
7383
}

0 commit comments

Comments
 (0)