Rebuild repository as Java backend primitives - #1
Merged
Conversation
azamir911
marked this pull request as ready for review
July 19, 2026 18:31
azamir911
marked this pull request as draft
July 19, 2026 18:44
azamir911
marked this pull request as ready for review
July 19, 2026 19:05
azamir911
marked this pull request as ready for review
July 19, 2026 23:29
azamir911
marked this pull request as draft
July 20, 2026 08:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Replace the repository contents with a clean-room, independent Java 21 backend primitives library. The implementation does not reuse the previous source files, package names, error identifiers, comments, framework types, or internal terminology.
Complete replacement map
shared/SharedFiFoQueue.javaCloseableBlockingQueue<E>plus the two concrete queue implementationsshared/SharedFiFoLockQueue.javaBoundedBlockingQueue<E>with lock and condition signalingshared/SharedFiFoSleepingQueue.javaPollingBackoffQueue<E>with configurable backoffshared/SharedFifoQueueMode.javaQueueWaitStrategyandCloseableQueuesfactoryQueueClosedExceptionInterruptedExceptionwith normal interrupt propagationcalculator/Accumulator.javaStreamingStatisticsandStatisticsSnapshotcalculator/RatioCalculator.javaDecimalRatioCalculatorcalculator/ChunkSizeCalculator.javaAdaptiveBatchSizer,RetryingSizeProbe<T>, andCheckedSizeProbe<T>Preserved and improved capabilities
Queues
peek,contains, logicalindexOf, immutable snapshots, draining, and clearingclose()with close-and-drain semanticscloseNow()that discards buffered elements and releases callersStreaming statistics
Decimal ratios
RoundingModeBigDecimalAPI and safe double convenience methodAdaptive batching
Validation
The final PR head passed:
verifyPublication plan
The repository remains private during review. After this PR is merged, the previous repository history will be replaced with a clean public history containing only the independent project. The same repository will then be renamed to
java-backend-primitivesand made public.No additional repository will be created.