Skip to content

Commit 143f2fb

Browse files
authored
Merge pull request TooTallNate#489 from marci4/master
Possibility to override worker thread allocation logic in WebSocketSe…
2 parents 7001ca0 + 3a6adbb commit 143f2fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/java_websocket/server/WebSocketServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public abstract class WebSocketServer extends AbstractWebSocket implements Runna
7373

7474
private final AtomicBoolean isclosed = new AtomicBoolean( false );
7575

76-
private List<WebSocketWorker> decoders;
76+
protected List<WebSocketWorker> decoders;
7777

7878
private List<WebSocketImpl> iqueue;
7979
private BlockingQueue<ByteBuffer> buffers;
@@ -470,7 +470,7 @@ public ByteBuffer createBuffer() {
470470
return ByteBuffer.allocate( WebSocketImpl.RCVBUF );
471471
}
472472

473-
private void queue( WebSocketImpl ws ) throws InterruptedException {
473+
protected void queue( WebSocketImpl ws ) throws InterruptedException {
474474
if( ws.workerThread == null ) {
475475
ws.workerThread = decoders.get( queueinvokes % decoders.size() );
476476
queueinvokes++;

0 commit comments

Comments
 (0)