Package org.nuxeo.runtime
Interface RuntimeMessageHandler
-
- All Known Implementing Classes:
RuntimeMessageHandlerImpl
public interface RuntimeMessageHandler
Handles runtime message.- Since:
- 9.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addError(String message)
Deprecated.since 11.3, useaddMessage(RuntimeMessage)
instead.void
addMessage(RuntimeMessage message)
Adds the following message.void
addWarning(String message)
Deprecated.since 11.3, useaddMessage(RuntimeMessage)
instead.List<String>
getErrors()
Deprecated.since 11.3, usegetMessages(Level)
insteadList<String>
getMessages(Predicate<RuntimeMessage> predicate)
Returns all messages strings, filtered by given predicate.List<String>
getMessages(RuntimeMessage.Level level)
Returns all messages strings, filtered by given level.List<RuntimeMessage>
getRuntimeMessages(Predicate<RuntimeMessage> predicate)
Returns all messages, filtered by given predicate.List<RuntimeMessage>
getRuntimeMessages(RuntimeMessage.Level level)
Returns all messages, filtered by given level.List<String>
getWarnings()
Deprecated.since 11.3, usegetMessages(Level)
instead
-
-
-
Method Detail
-
addMessage
void addMessage(RuntimeMessage message)
Adds the following message.- Since:
- 11.3
-
getMessages
List<String> getMessages(RuntimeMessage.Level level)
Returns all messages strings, filtered by given level.- Since:
- 11.3
-
getMessages
List<String> getMessages(Predicate<RuntimeMessage> predicate)
Returns all messages strings, filtered by given predicate.- Since:
- 11.3
-
getRuntimeMessages
List<RuntimeMessage> getRuntimeMessages(RuntimeMessage.Level level)
Returns all messages, filtered by given level.- Since:
- 11.3
-
getRuntimeMessages
List<RuntimeMessage> getRuntimeMessages(Predicate<RuntimeMessage> predicate)
Returns all messages, filtered by given predicate.- Since:
- 11.3
-
addWarning
@Deprecated void addWarning(String message)
Deprecated.since 11.3, useaddMessage(RuntimeMessage)
instead.Warning messages don't block server startup.
-
getWarnings
@Deprecated List<String> getWarnings()
Deprecated.since 11.3, usegetMessages(Level)
instead- Returns:
- an unmodifiable
List
of warning messages
-
addError
@Deprecated void addError(String message)
Deprecated.since 11.3, useaddMessage(RuntimeMessage)
instead.Add new error.Error messages block server startup in strict mode.
-
getErrors
@Deprecated List<String> getErrors()
Deprecated.since 11.3, usegetMessages(Level)
instead- Returns:
- an unmodifiable
List
of error messages
-
-