spullara / redis-protocol

Java client and server implementation of Redis
356 stars 134 forks source link

Use 'newSingleThreadExecutor()' to enforce a serialized work queue without the risk of reconfiguration. #3

Closed fcarriedo closed 12 years ago

fcarriedo commented 12 years ago

To better enforce a serialized work queue it might be better to use newSingleThreadExecutor() so that the returned executor is guaranteed not to be reconfigurable to use additional threads.