| Interface | Description |
|---|---|
| EagerExecutorService |
EagerExecutorService.
|
| Rejector<E> |
RejectHandler, it works when you need to custom reject action in
MemorySafeLinkedBlockingQueue. |
| TaskQueue<E> |
TaskQueue.
|
| Class | Description |
|---|---|
| AbortPolicy<E> |
A handler for rejected element that throws a
RejectException. |
| DiscardOldestPolicy<E> |
A handler for rejected element that discards the oldest element.
|
| DiscardPolicy<E> |
A handler for rejected element that silently discards the
rejected element.
|
| MemoryLimitCalculator |
Runtime.freeMemory() technology is used to calculate the
memory limit by using the percentage of the current maximum available memory,
which can be used with MemoryLimiter. |
| MemoryLimitedLinkedBlockingQueue<E> |
Can completely solve the OOM problem caused by
LinkedBlockingQueue. |
| MemoryLimitedTaskQueue<R extends java.lang.Runnable> |
MemoryLimitedTaskQueue in the
ShenyuThreadPoolExecutor. |
| MemoryLimiter |
memory limiter.
|
| MemorySafeLinkedBlockingQueue<E> |
Can completely solve the OOM problem caused by
LinkedBlockingQueue,
does not depend on Instrumentation and is easier to use than
MemoryLimitedLinkedBlockingQueue. |
| MemorySafeTaskQueue<R extends java.lang.Runnable> |
MemorySafeTaskQueue in the
ShenyuThreadPoolExecutor. |
| ShenyuThreadFactory |
ShenyuThreadFactory.
|
| ShenyuThreadPoolExecutor |
ShenyuThreadPoolExecutor.
|
| Exception | Description |
|---|---|
| RejectException |
Exception thrown by an
MemorySafeLinkedBlockingQueue
when a element cannot be accepted. |
Copyright © 2024 The Apache Software Foundation. All rights reserved.