| Modifier and Type | Interface and Description |
|---|---|
interface |
TimingPauser
Marker interface to show we support
TimingPauser.pause(long, TimeUnit) |
| Modifier and Type | Class and Description |
|---|---|
class |
BusyPauser
Implementation of
Pauser that employs a busy-wait strategy to keep the CPU actively engaged. |
class |
BusyTimedPauser
Similar to
BusyPauser but also supporting TimingPauser |
class |
LongPauser
A
Pauser that implements a pausing strategy with phases of busy waiting, yielding, and sleeping,
with each phase increasing in duration up to a configured limit. |
class |
MilliPauser
A
Pauser implementation that provides precise control over thread pausing based on a specified duration in milliseconds. |
class |
TimeoutPauser
Deprecated.
|
class |
YieldingPauser
This pauser is designed for situations where short bursts of busyness are acceptable before yielding,
aiming to balance responsiveness with CPU usage.
|
| Modifier and Type | Field and Description |
|---|---|
protected Pauser |
MediumEventLoop.pauser |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull Pauser |
Pauser.busy()
Creates a
Pauser that actively keeps the thread busy and does not employ any waiting strategies. |
static Pauser |
Pauser.millis(int minMillis,
int maxMillis)
Creates a
Pauser that pauses with a back-off strategy, starting at a minimum millisecond interval and potentially increasing to a maximum. |
static Pauser |
Pauser.yielding()
Provides a simple
Pauser that is more process-friendly by yielding the thread execution. |
static Pauser |
Pauser.yielding(int minBusy)
Returns a
Pauser that either yields, pauses, or does not wait at all, based on system capabilities. |
| Modifier and Type | Method and Description |
|---|---|
EventGroupBuilder |
EventGroupBuilder.withPauser(Pauser pauser) |
EventGroupBuilder |
EventGroupBuilder.withReplicationPauser(Pauser replicationPauser) |
| Constructor and Description |
|---|
EventGroup(boolean daemon,
@NotNull Pauser pauser,
Pauser replicationPauser,
String binding,
String bindingReplication,
@NotNull String name,
int concThreadsNum,
String concBinding,
@NotNull Supplier<Pauser> concPauserSupplier,
Set<net.openhft.chronicle.core.threads.HandlerPriority> priorities,
@NotNull Supplier<Pauser> blockingPauserSupplier) |
EventGroup(boolean daemon,
@NotNull Pauser pauser,
Pauser replicationPauser,
String binding,
String bindingReplication,
@NotNull String name,
int concThreadsNum,
String concBinding,
@NotNull Supplier<Pauser> concPauserSupplier,
Set<net.openhft.chronicle.core.threads.HandlerPriority> priorities,
@NotNull Supplier<Pauser> blockingPauserSupplier) |
MediumEventLoop(@Nullable net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
boolean daemon,
String binding) |
MonitorEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
Pauser pauser) |
MonitorEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser) |
PauserMonitor(Pauser pauser,
String description,
int seconds)
Deprecated.
|
VanillaEventLoop(@Nullable net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
String binding,
Set<net.openhft.chronicle.core.threads.HandlerPriority> priorities) |
Copyright © 2024. All rights reserved.