(Boolean success)
| 85 | class SyncCB implements Callback<Deferred<Annotation>, Boolean> { |
| 86 | |
| 87 | @Override |
| 88 | public Deferred<Annotation> call(Boolean success) throws Exception { |
| 89 | if (!success) { |
| 90 | throw new BadRequestException( |
| 91 | HttpResponseStatus.INTERNAL_SERVER_ERROR, |
| 92 | "Failed to save the Annotation to storage", |
| 93 | "This may be caused by another process modifying storage data"); |
| 94 | } |
| 95 | |
| 96 | return Annotation.getAnnotation(tsdb, note.getTSUID(), |
| 97 | note.getStartTime()); |
| 98 | } |
| 99 | |
| 100 | } |
| 101 |
nothing calls this directly
no test coverage detected