public class InMemoryLog extends Object implements MessageLog
MessageLog.Appender, MessageLog.AppendingContext, MessageLog.Handler, MessageLog.Poller| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INITIAL_BUFFER_CAPACITY |
static int |
DEFAULT_INITIAL_QUEUE_CAPACITY |
| Constructor and Description |
|---|
InMemoryLog() |
InMemoryLog(int initialQueueCapacity,
int initialBufferCapacity,
boolean removeOnPoll,
boolean initEagerly) |
| Modifier and Type | Method and Description |
|---|---|
MessageLog.Appender |
appender() |
void |
close() |
MessageLog.Poller |
poller() |
MessageLog.Poller |
poller(String id) |
long |
size() |
public static final int DEFAULT_INITIAL_QUEUE_CAPACITY
public static final int DEFAULT_INITIAL_BUFFER_CAPACITY
public InMemoryLog()
public InMemoryLog(int initialQueueCapacity,
int initialBufferCapacity,
boolean removeOnPoll,
boolean initEagerly)
public MessageLog.Appender appender()
appender in interface MessageLogpublic MessageLog.Poller poller()
poller in interface MessageLogpublic MessageLog.Poller poller(String id)
poller in interface MessageLogpublic long size()
public void close()
close in interface AutoCloseableclose in interface MessageLogCopyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.