void function ( ) { int loc0 , loc1 ; do { loc0 = state ; if ( ( loc0 & CLOSED ) != 0 ) { return ; } loc1 = loc0 | CLOSED ; } while ( ! stateUpdater . compareAndSet ( this , loc0 , loc1 ) ) ; if ( loc1 == CLOSED ) { handleCompleted ( ) ; } }
prepare the shutdown , disallowing new requests . concode_field_sep CountDownLatch latch concode_elem_sep AtomicIntegerFieldUpdater<ManagementHttpRequestProcessor> stateUpdater concode_elem_sep List<ShutdownListener> listeners concode_elem_sep int state concode_elem_sep int CLOSED concode_field_sep boolean beginRequest concode_elem_sep void handleCompleted concode_elem_sep void handleCompleted concode_elem_sep void shutdownNow concode_elem_sep void endRequest concode_elem_sep void addShutdownListener concode_elem_sep boolean awaitCompletion concode_elem_sep void shutdown