void function ( ClientResponse arg0 ) { if ( ! status . compareAndSet ( STATUS_RUNNING , STATUS_SUCCESS ) ) return ; this . response = arg0 ; this . latch . countDown ( ) ; }
sets the result of the operation and flag the execution call as completed . concode_field_sep CountDownLatch latch concode_elem_sep int STATUS_SUCCESS concode_elem_sep AtomicInteger status concode_elem_sep int STATUS_RUNNING concode_elem_sep int STATUS_FAILURE concode_elem_sep int STATUS_ABORTED concode_elem_sep ClientResponse response concode_elem_sep int STATUS_TIMEOUT concode_elem_sep long timeout concode_field_sep boolean cancel concode_elem_sep boolean isCancelled concode_elem_sep ClientResponse get concode_elem_sep ClientResponse get concode_elem_sep boolean isDone