File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/io/prometheus/wls/rest Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- // Copyright 2019, Oracle Corporation and/or its affiliates. All rights reserved .
1+ // Copyright 2019, 2020, Oracle Corporation and/or its affiliates.
22// Licensed under the Universal Permissive License v 1.0 as shown at
33// http://oss.oracle.com/licenses/upl.
44
1414import java .util .ArrayList ;
1515import java .util .List ;
1616import java .util .Queue ;
17+ import java .util .concurrent .ConcurrentLinkedDeque ;
1718
1819import static io .prometheus .wls .rest .ServletConstants .MESSAGES_PAGE ;
1920
@@ -25,7 +26,7 @@ public class MessagesServlet extends HttpServlet {
2526 static final int MAX_EXCHANGES = 5 ;
2627 private static final String TEMPLATE = "REQUEST:%n%s%nREPLY:%n%s%n" ;
2728
28- private static Queue <String > messages = new ArrayDeque <>();
29+ private static Queue <String > messages = new ConcurrentLinkedDeque <>();
2930
3031 @ Override
3132 protected void doGet (HttpServletRequest req , HttpServletResponse resp ) throws IOException {
You can’t perform that action at this time.
0 commit comments