Skip to content

Commit

Permalink
provide a default consumerByteCount implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf committed Sep 8, 2023
1 parent 2a01825 commit df89f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/nats/client/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,5 @@ public interface Message {
* Only applies to JetStream messages received from the server.
* @return the consumption byte count or -1 if the message implementation does not support this method
*/
long consumeByteCount();
default long consumeByteCount() { return -1; }
}

0 comments on commit df89f50

Please sign in to comment.