public class EventGroup extends Object implements net.openhft.chronicle.core.threads.EventLoop
| Constructor and Description |
|---|
EventGroup(boolean daemon) |
EventGroup(boolean daemon,
boolean binding) |
EventGroup(boolean daemon,
Pauser pauser,
boolean binding) |
EventGroup(boolean daemon,
Pauser pauser,
boolean binding,
int bindingCpuCore,
int bindingCpuReplication,
String name) |
EventGroup(boolean daemon,
Pauser pauser,
boolean binding,
int bindingCpuCore,
int bindingCpuReplication,
String name,
int concThreads)
Create an EventGroup
|
EventGroup(boolean daemon,
Pauser pauser,
boolean binding,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(boolean dontAttemptToRunImmediatelyInCurrentThread,
net.openhft.chronicle.core.threads.EventHandler handler) |
void |
addHandler(net.openhft.chronicle.core.threads.EventHandler handler) |
void |
addTimingMonitor(String description,
long timeLimitNS,
LongSupplier timeSupplier,
Supplier<Thread> threadSupplier) |
void |
awaitTermination() |
void |
close() |
protected int |
hash(net.openhft.chronicle.core.threads.EventHandler handler,
int mod) |
boolean |
isAlive() |
boolean |
isClosed() |
void |
setConcThreadPauserSupplier(Supplier<Pauser> supplier) |
void |
setupTimeLimitMonitor(long timeLimitNS,
LongSupplier timeOfStart) |
void |
start() |
void |
stop() |
void |
unpause() |
public EventGroup(boolean daemon,
@NotNull
Pauser pauser,
boolean binding,
int bindingCpuCore,
int bindingCpuReplication,
String name,
int concThreads)
daemon - whether to create threads as daemonpauser - pauser to usebinding - whether to bind core event loop to current corebindingCpuCore - CPU to bind core event loop to. Supersedes binding abovebindingCpuReplication - CPU to bind replication event loop to. -1 means no bindingname - name of event group. Any created threads are named after thispublic EventGroup(boolean daemon)
public EventGroup(boolean daemon,
boolean binding)
public EventGroup(boolean daemon,
@NotNull
Pauser pauser,
boolean binding)
protected int hash(net.openhft.chronicle.core.threads.EventHandler handler,
int mod)
public void awaitTermination()
awaitTermination in interface net.openhft.chronicle.core.threads.EventLooppublic void unpause()
unpause in interface net.openhft.chronicle.core.threads.EventLooppublic void addHandler(boolean dontAttemptToRunImmediatelyInCurrentThread,
@NotNull
net.openhft.chronicle.core.threads.EventHandler handler)
addHandler in interface net.openhft.chronicle.core.threads.EventLooppublic void addHandler(@NotNull
net.openhft.chronicle.core.threads.EventHandler handler)
addHandler in interface net.openhft.chronicle.core.threads.EventLooppublic void setupTimeLimitMonitor(long timeLimitNS,
LongSupplier timeOfStart)
public void addTimingMonitor(String description, long timeLimitNS, LongSupplier timeSupplier, Supplier<Thread> threadSupplier)
public void start()
start in interface net.openhft.chronicle.core.threads.EventLooppublic void stop()
stop in interface net.openhft.chronicle.core.threads.EventLooppublic boolean isClosed()
isClosed in interface net.openhft.chronicle.core.threads.EventLooppublic boolean isAlive()
isAlive in interface net.openhft.chronicle.core.threads.EventLooppublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.