public static < E > BlockingQueue < E > getLimitedBlockingQueue ( int maxQueue ) { return new LinkedBlockingQueue < E > ( maxQueue ) { @ Override public boolean offer ( E e ) { return putInsteadOfOffer ( this , e ) ; } } ; }
Gets limited blocking queue .