Top Description Methods
io.netty.channel

public Interface EventLoopTaskQueueFactory

Imports
java.util.Queue

Factory used to create Queue instances that will be used to store tasks for an EventLoop. Generally speaking the returned Queue MUST be thread-safe and depending on the EventLoop implementation must be of type java.util.concurrent.BlockingQueue.

Method Summary

Modifier and TypeMethod and Description
public Queue<Runnable>

Returns:

the new queue.
newTaskQueue
(int
the maximum amount of elements that can be stored in the Queue at a given point in time.
maxCapacity
)

Returns a new Queue to use.

Method Detail

newTaskQueueback to summary
public Queue<Runnable> newTaskQueue(int maxCapacity)

Returns a new Queue to use.

Parameters
maxCapacity:int

the maximum amount of elements that can be stored in the Queue at a given point in time.

Returns:Queue<Runnable>

the new queue.