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.
2
2
// Licensed under the Universal Permissive License v 1.0 as shown at
3
3
// http://oss.oracle.com/licenses/upl.
4
4
14
14
import java .util .ArrayList ;
15
15
import java .util .List ;
16
16
import java .util .Queue ;
17
+ import java .util .concurrent .ConcurrentLinkedDeque ;
17
18
18
19
import static io .prometheus .wls .rest .ServletConstants .MESSAGES_PAGE ;
19
20
@@ -25,7 +26,7 @@ public class MessagesServlet extends HttpServlet {
25
26
static final int MAX_EXCHANGES = 5 ;
26
27
private static final String TEMPLATE = "REQUEST:%n%s%nREPLY:%n%s%n" ;
27
28
28
- private static Queue <String > messages = new ArrayDeque <>();
29
+ private static Queue <String > messages = new ConcurrentLinkedDeque <>();
29
30
30
31
@ Override
31
32
protected void doGet (HttpServletRequest req , HttpServletResponse resp ) throws IOException {
You can’t perform that action at this time.
0 commit comments