Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1027061 // addToQWithMaxSize_verbose

JavaX fragment (include)

svoid addToQWithMaxSize_verbose(int maxSize, S queueName, Q q, Runnable r) {
  if (q == null) ret;
  if (q.size() >= maxSize)
    ret with print(queueName + " sized " + q.size() + ": dropping " + runnableToStringShort(r));
  addToQAndPrintSize(queueName, q, r);
}

Author comment

Began life as a copy of #1027057

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027061
Snippet name: addToQWithMaxSize_verbose
Eternal ID of this version: #1027061/2
Text MD5: 0c0904e6510996b20997c022bb1beb9d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-16 16:28:13
Source code size: 268 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 172 / 210
Version history: 1 change(s)
Referenced in: [show references]