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)
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 |
awaitTermination() |
void |
close() |
boolean |
isAlive() |
boolean |
isClosed() |
void |
setConcThreadPauserSupplier(Supplier<Pauser> supplier) |
void |
start() |
void |
stop() |
void |
unpause() |
public EventGroup(boolean daemon,
@NotNull
Pauser pauser,
boolean binding,
int bindingCpuCore,
int bindingCpuReplication,
String name)
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)
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 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 © 2018. All rights reserved.