Code example for AtomicReference

         * @param response response to create {@link AsyncContext} for. 
        private ExtensionImpl(final HttpServletRequest request, final HttpServletResponse response) { 
            this.request = request; 
            this.response = response; 
            this.asyncContextRef = new AtomicReference<AsyncContext>(); 
        public void suspend() throws IllegalStateException { 
            final AsyncContext asyncContext = request.startAsync(request, response); 
            // Tell underlying asyncContext to never time out. 
        public void complete() { 
Stop searching for code, let great code find you!  Add Codota to your java IDE