Code example for LinkedBlockingQueue

Methods: put

0
    } 
     
     
    public void push(TaskBean task){
        try { 
            queue.put(task);
        } catch(Exception ign){
            System.out.println("not added to queue due to->"+ign.getMessage());
        } 
    } 
     
    /** Creates a new instance of AbstractTaskProcessor */ 
    public AbstractTaskProcessor() { 
         
    } 
     
     
    public ScheduleManager getManager() { 
        return manager;
    }