Skip to content

Commit

Permalink
feat #12 受信キュー内のメッセージ数を取得
Browse files Browse the repository at this point in the history
  • Loading branch information
TodorokiKohei committed Jul 11, 2023
1 parent 4112e66 commit d933c54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -973,9 +973,13 @@ public int getActualInFlight() {

public boolean doesSubscriptionIdentifierExist(int subscriptionIdentifier) {
return this.callback.doesSubscriptionIdentifierExist(subscriptionIdentifier);
}

public void resizeReceiverQueueSize(int size){
callback.resizeQueueSize(size);
}

public int getNumberOfMsgsUnprocessed(){
return callback.getNumberOfMsgsInQueue();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public void resizeQueueSize(int size) {
messageQueue.ensureCapacity(size);
}

public int getNumberOfMsgsInQueue(){
public int getNumberOfMsgsInQueue() {
return messageQueue.size();
}

Expand Down

0 comments on commit d933c54

Please sign in to comment.