Code example for ArrayBlockingQueue

0
 
        install(factoryModuleBuilder 
                .build(ScannerShutdownFactory.class)); 
 
        bind(new TypeLiteral<BlockingQueue<Work>>() { 
        }).toInstance(new ArrayBlockingQueue<Work>(1)); 
 
        bind(WorkConsumer.class).asEagerSingleton(); 
    } 
}