Switch keepalive queue to ArrayDeque

See eeb374798b
This commit is contained in:
md_5 2020-01-28 20:35:15 +11:00
parent ce2dcaf71d
commit 3ce4132c58

View File

@ -3,7 +3,7 @@ package net.md_5.bungee;
import com.google.common.base.Preconditions;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.LinkedList;
import java.util.ArrayDeque;
import java.util.Queue;
import lombok.Data;
import lombok.Getter;
@ -29,7 +29,7 @@ public class ServerConnection implements Server
@Getter
private final boolean forgeServer = false;
@Getter
private final Queue<KeepAliveData> keepAlives = new LinkedList<>();
private final Queue<KeepAliveData> keepAlives = new ArrayDeque<>();
private final Unsafe unsafe = new Unsafe()
{