| Package | Description |
|---|---|
| io.atomix.utils | |
| io.atomix.utils.concurrent |
Generic utilities for managing object lifecycles.
|
| Constructor and Description |
|---|
SlidingWindowCounter(int windowSlots,
ThreadContext context)
Creates a new sliding window counter with the given total number of
window slots.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SingleThreadContext
Single threaded context.
|
class |
ThreadPoolContext
Thread pool context.
|
| Modifier and Type | Method and Description |
|---|---|
ThreadContext |
ThreadPoolContextFactory.createContext() |
ThreadContext |
ThreadContextFactory.createContext()
Creates a new thread context.
|
ThreadContext |
SingleThreadContextFactory.createContext() |
static ThreadContext |
ThreadContext.currentContext()
Returns the current thread context.
|
static ThreadContext |
ThreadContext.currentContextOrThrow() |
ThreadContext |
AtomixThread.getContext()
Returns the thread context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AtomixThread.setContext(ThreadContext context)
Sets the thread context.
|
Copyright © 2013–2017. All rights reserved.