public void setValue ( byte [ ] newValue ) throws Exception { Preconditions . checkState ( state . get ( ) == State . STARTED , "not started" ) ; Stat result = client . setData ( ) . forPath ( path , newValue ) ; updateValue ( result . getVersion ( ) , Arrays . copyOf ( newValue , newValue . length ) ) ; }
Change the shared value value irrespective of its previous state