public void updateServiceInstanceUri ( String serviceName , String instanceId , String uri , final RegistrationCallback cb , Object context ) { ProtocolHeader header = new ProtocolHeader ( ) ; header . setType ( ProtocolType . UpdateServiceInstanceUri ) ; UpdateServiceInstanceUriProtocol p = new UpdateServiceInstanceUriProtocol ( serviceName , instanceId , uri ) ; ProtocolCallback pcb = new ProtocolCallback ( ) { @ Override public void call ( boolean result , Response response , ErrorCode error , Object ctx ) { cb . call ( result , error , ctx ) ; } } ; connection . submitCallbackRequest ( header , p , pcb , context ) ; }
Update ServiceInstance URI in Callback .