public void setData ( final String path , byte data [ ] , int version , StatCallback cb , Object ctx ) { verbotenThreadCheck ( ) ; final String clientPath = path ; PathUtils . validatePath ( clientPath ) ; final String serverPath = prependChroot ( clientPath ) ; RequestHeader h = new RequestHeader ( ) ; h . setType ( ZooDefs . OpCode . setData ) ; SetDataRequest request = new SetDataRequest ( ) ; request . setPath ( serverPath ) ; request . setData ( data ) ; request . setVersion ( version ) ; SetDataResponse response = new SetDataResponse ( ) ; cnxn . queuePacket ( h , new ReplyHeader ( ) , request , response , cb , clientPath , serverPath , ctx , null ) ; }
The Asynchronous version of setData . The request doesn t actually until the asynchronous callback is called .