Jire
Jire

Reputation: 10280

Netty: How can I acquire a single thread executor from an `EventLoop`?

How can I acquire a single thread executor from an EventLoop?

The reason being is I would like to use a single thread for one part of my application, but still have it be available for use by the EventLoop.

Upvotes: 1

Views: 142

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

The EventLoop is always just backed by a single thread. So the EventLoop in fact is just a single thread executor.

Upvotes: 1

Related Questions