public long decRefToStreamAndSession(final int streamId, final int sessionId) { final long key = Hashing.compoundKey(streamId, sessionId); final long count = refCountByStreamIdAndSessionIdMap.decrementAndGet(key); if (-1 == count) { refCountByStreamIdAndSessionIdMap.remove(key); throw new IllegalStateException( "could not find stream Id + session Id to decrement: " + streamId + " " + sessionId); } return count; }
public long decRefToStreamAndSession(final int streamId, final int sessionId) { final long key = Hashing.compoundKey(streamId, sessionId); final long count = refCountByStreamIdAndSessionIdMap.decrementAndGet(key); if (-1 == count) { refCountByStreamIdAndSessionIdMap.remove(key); throw new IllegalStateException( "could not find stream Id + session Id to decrement: " + streamId + " " + sessionId); } return count; }
public long decRefToStreamAndSession(final int streamId, final int sessionId) { final long key = Hashing.compoundKey(streamId, sessionId); final long count = refCountByStreamIdAndSessionIdMap.decrementAndGet(key); if (-1 == count) { refCountByStreamIdAndSessionIdMap.remove(key); throw new IllegalStateException( "could not find stream Id + session Id to decrement: " + streamId + " " + sessionId); } return count; }