Minor code cleanup and deprecations etc

This commit is contained in:
Viktor Klang 2011-01-05 16:36:50 +01:00
parent 2c613d99da
commit 71596343c6
4 changed files with 26 additions and 12 deletions

View file

@ -88,7 +88,7 @@ case class ThreadPoolConfigDispatcherBuilder(dispatcherFactory: (ThreadPoolConfi
def build = dispatcherFactory(config)
//TODO remove this, for backwards compat only
def buildThreadPool = build
@deprecated("Use .build instead") def buildThreadPool = build
def withNewBoundedThreadPoolWithLinkedBlockingQueueWithUnboundedCapacity(bounds: Int): ThreadPoolConfigDispatcherBuilder =
this.copy(config = config.copy(flowHandler = flowHandler(bounds), queueFactory = linkedBlockingQueue()))