private void updateLastStreamId(IStream stream) {
   int streamId = stream.getId();
   if (streamId % 2 != streamIds.get() % 2) Atomics.updateMax(lastStreamId, streamId);
 }
示例#2
0
 private void updateLastStreamId(int streamId) {
   Atomics.updateMax(lastStreamId, streamId);
 }