public abstract class MessageAccessor extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MessageAccessor.MessageFilter |
Constructor and Description |
---|
MessageAccessor() |
Modifier and Type | Method and Description |
---|---|
abstract MessageAccessor.MessageFilter |
createFilter() |
abstract List<Message> |
getAll()
Gets the messgages from a set of levels
|
List<Message> |
getDebugs()
Gets the debugs.
|
List<Message> |
getErrors()
Gets the errors.
|
List<Message> |
getInfos()
Gets the infos.
|
abstract BigDecimal |
getProgress() |
List<Message> |
getTraces()
Gets the traces.
|
List<Message> |
getWarnings()
Gets the warnings.
|
abstract void |
listen(Consumer<Integer> callback)
Register a callback that is called whenever a new (top-level) message arrives, a message is
updated with descendant messages, or the progress of a message changes.
|
abstract void |
unlisten(Consumer<Integer> callback) |
public abstract List<Message> getAll()
fromLevels
- levelspublic abstract void listen(Consumer<Integer> callback)
public abstract BigDecimal getProgress()
public abstract MessageAccessor.MessageFilter createFilter()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.