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