public class PriorityThreadPoolExecutorTest extends Object
PriorityThreadPoolExecutor
.Constructor and Description |
---|
PriorityThreadPoolExecutorTest() |
Modifier and Type | Method and Description |
---|---|
void |
fifoEntryTestComparatorDifferentSession()
Tests that verify the functionality provided by the implementation of
PriorityThreadPoolExecutor.SessionEntry
. |
void |
fifoEntryTestNoComparatorDifferentSession()
Tests that verify the functionality provided by the implementation of
PriorityThreadPoolExecutor.SessionEntry
. |
void |
fifoEntryTestNoComparatorSameSession()
Tests that verify the functionality provided by the implementation of
PriorityThreadPoolExecutor.SessionEntry
. |
void |
fifoEntryTestWithComparatorSameSession()
Tests that verify the functionality provided by the implementation of
PriorityThreadPoolExecutor.SessionEntry
. |
void |
testPrioritisation()
Asserts that, when enough work is being submitted to the executor for it
to start queuing work, prioritisation of work starts to occur.
|
public void fifoEntryTestNoComparatorSameSession() throws Exception
PriorityThreadPoolExecutor.SessionEntry
.
This test asserts that, without a provided comparator, entries are
considered equal, when they reference the same session.Exception
public void fifoEntryTestNoComparatorDifferentSession() throws Exception
PriorityThreadPoolExecutor.SessionEntry
.
This test asserts that, without a provided comparator, the first entry
created is 'less than' an entry that is created later.Exception
public void fifoEntryTestWithComparatorSameSession() throws Exception
PriorityThreadPoolExecutor.SessionEntry
.
This test asserts that, with a provided comparator, entries are
considered equal, when they reference the same session (the provided
comparator is ignored).Exception
public void fifoEntryTestComparatorDifferentSession() throws Exception
PriorityThreadPoolExecutor.SessionEntry
.
This test asserts that a provided comparator is used instead of the
(fallback) default behavior (when entries are referring different
sessions).Exception
public void testPrioritisation() throws Throwable
Throwable
Copyright © 2004–2019 Apache MINA Project. All rights reserved.