String uuid = certificate.getString("uuid"); Long timestamp = certificate.getLong("timestamp"); _service.remove(layer, new Pair<>( uuid, timestamp ) );
private void remove( AnnotationWrapper annotation ) { AnnotationData<?> clone = annotation.clone(); try { long start = System.currentTimeMillis(); _service.remove( _layerId, clone.getCertificate() ); long end = System.currentTimeMillis(); double time = ((end-start)/1000.0); removeAnnotationFromPublic(annotation); LOGGER.debug("Thread " + _name + " successfully removed " + clone.getUUID() + " in " + time + " sec"); } catch (Exception e) { LOGGER.debug("Thread " + _name + " unsuccessfully removed " + clone.getUUID() ); } }