@Override
    public EndpointEvent nextEvent()
    {
        return endpointEvents.poll();
    }
Removes and returns one endpoint event from the event queue or
 null if there are no endpoint events.
jme3-networking/src/main/java/com/jme3/network/kernel/AbstractKernel.java