/** * Get the Collection of of objects returned as a response of a bulk operation. This method should * block when the response content is not yet available. */ public Collection getCollection() throws JAXRException { synchronized (this) { while (!isAvailable()) { try { this.wait(); } catch (InterruptedException e) { } } return (Collection) collection.clone(); } }
/** * Get the JAXRException in case of partial commit. Return null if none. This method should block * when the response content is not yet available. */ public Collection getExceptions() throws JAXRException { synchronized (this) { while (!isAvailable()) { try { this.wait(); } catch (InterruptedException e) { } } // exceptions collection is null if there are no errors if (exceptions != null) { return (Collection) exceptions.clone(); } else { return null; } } }