Class CommitLogSegmentManagerStandard

    • Constructor Detail

      • CommitLogSegmentManagerStandard

        public CommitLogSegmentManagerStandard​(CommitLog commitLog,
                                               java.lang.String storageDirectory)
    • Method Detail

      • allocate

        public CommitLogSegment.Allocation allocate​(Mutation mutation,
                                                    int size)
        Reserve space in the current segment for the provided mutation or, if there isn't space available, create a new segment. allocate() is blocking until allocation succeeds as it waits on a signal in advanceAllocatingFrom
        Specified by:
        allocate in class AbstractCommitLogSegmentManager
        Parameters:
        mutation - mutation to allocate space for
        size - total size of mutation (overhead + serialized size)
        Returns:
        the provided Allocation object