Code example for LinkedBlockingQueue

Methods: clear

0
     * Stop the server don't use {@link #stop()} doesn't work! 
     */ 
    void stopServer() 
    { 
        run = false;
        mPacketSendQueue.clear();
        interrupt();
    } 
 
    boolean isStarted() 
    { 
        return mIsStarted;
    } 
 
    boolean isRunning() 
    { 
        return mIsRunning;
    } 
 
    boolean isFinished() 
    {