Permalink
Browse files

use unordered thread pool by default

  • Loading branch information...
1 parent fcfd5a8 commit 0a5933d4ed0edbd5eb58d335d3a0c7d6f0fdb0c1 @sunng87 committed Apr 11, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/link/http.clj
  2. +2 −2 src/link/tcp.clj
View
@@ -32,7 +32,7 @@
DefaultHttpResponse])
(:import [org.jboss.netty.handler.execution
ExecutionHandler
- OrderedMemoryAwareThreadPoolExecutor]))
+ MemoryAwareThreadPoolExecutor]))
(defn create-http-pipeline [handler threaded?]
(reify ChannelPipelineFactory
@@ -42,7 +42,7 @@
(if threaded?
(.addLast pipeline "executor"
(ExecutionHandler.
- (OrderedMemoryAwareThreadPoolExecutor. 20 0 0))))
+ (MemoryAwareThreadPoolExecutor. 20 0 0))))
(.addLast pipeline "handler" handler)
pipeline))))
View
@@ -19,7 +19,7 @@
NioClientSocketChannelFactory])
(:import [org.jboss.netty.handler.execution
ExecutionHandler
- OrderedMemoryAwareThreadPoolExecutor])
+ MemoryAwareThreadPoolExecutor])
(:import [link.core WrappedSocketChannel]))
(defn- create-pipeline [& handlers]
@@ -51,7 +51,7 @@
[encoder decoder handler]
[encoder decoder
(ExecutionHandler.
- (OrderedMemoryAwareThreadPoolExecutor. 20 0 0))
+ (MemoryAwareThreadPoolExecutor. 20 0 0))
handler])
pipeline (apply create-pipeline handlers)]
(.setPipelineFactory bootstrap pipeline)

0 comments on commit 0a5933d

Please sign in to comment.