void acceptOperation ( StreamSegmentSealOperation operation ) throws MetadataUpdateException { ensureSegmentId ( operation ) ; if ( operation . getStreamSegmentOffset ( ) < 0 ) { throw new MetadataUpdateException ( containerId , "StreamSegmentSealOperation cannot be accepted if it hasn't been pre-processed: " + operation ) ; } this . sealed = true ; this . isChanged = true ; }
Accepts a StreamSegmentSealOperation in the metadata .