Code example for SynchronousQueue

Methods: put

0
 
        private void send(String event)
        { 
            try 
            { 
                m_eventQueue.put(event);
                m_semaphore.acquire();
            } 
            catch (InterruptedException e)
            { 
                throw new RuntimeException("Can not send event. Impossible!", e);
            } 
        } 
    } 
 
    private static final String workspaceFolder = new File(System.getProperty("java.io.tmpdir"),
                                                    "junitworkfiles").getPath();
 
    @BeforeClass 
    public static void setUpBeforeClass() throws Exception 
    {