public void close(Result<Boolean> result)
  {
    _lifecycle.toDestroy();
    
    SegmentStream nodeStream = _nodeStream;
    _nodeStream = null;
      
    if (nodeStream != null) {
      nodeStream.closeFsync(result.then(v->closeImpl()));
    }
    else {
      result.ok(true);
    }
  }
public void close ( Result < Boolean > result ) { _lifecycle . toDestroy ( ) ; SegmentStream nodeStream = _nodeStream ; _nodeStream = null ; if ( nodeStream != null ) { nodeStream . closeFsync ( result . then ( v -> closeImpl ( ) ) ) ; } else { result . ok ( true ) ; } }
Closes the store.