Class LogAlert
java.lang.Object
com.biglybt.core.logging.LogAlert
- All Implemented Interfaces:
LogAlert
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intfinal intbooleanbooleanObject[]A list of events that this entry is related tofinal booleanstatic final booleanintstatic final booleanfinal longFields inherited from interface LogAlert
LT_ERROR, LT_INFORMATION, LT_WARNING -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns the objects associated with the alert - this will return null if the alert isn't associated with such any objects.getError()Returns the error associated with the alert - null if there is no error.intHow long should to display the alert for - this will be the value that was given when creating the alert.Returns the text of the message - this will have any formatting stripped out.getText()Returns the text of the message - this may include formatting tags (for example, hyperlinks).intHow long should to display the alert for - this will be either the explicit value given when creating the alert, or a value determined from the client's behaviour and its configuration settings.intgetType()Returns the log type of the alert - the value of which will be one of the LT_ constants defined above.
-
Field Details
-
AT_INFORMATION
public static final int AT_INFORMATION- See Also:
-
AT_WARNING
public static final int AT_WARNING- See Also:
-
AT_ERROR
public static final int AT_ERROR- See Also:
-
REPEATABLE
public static final boolean REPEATABLE- See Also:
-
UNREPEATABLE
public static final boolean UNREPEATABLE- See Also:
-
when
public final long when -
entryType
public final int entryType -
err
-
repeatable
public final boolean repeatable -
text
-
timeoutSecs
public int timeoutSecs -
details
-
isNative
public boolean isNative -
forceNotify
public boolean forceNotify
-
-
Constructor Details
-
LogAlert
- Parameters:
repeatable-type-text-
-
LogAlert
- Parameters:
repeatable-type-text-timeoutSecs- -1 -> use defaults 0 -> no timeout
-
LogAlert
-
LogAlert
-
LogAlert
-
LogAlert
-
LogAlert
-
-
Method Details
-
getGivenTimeoutSecs
public int getGivenTimeoutSecs()Description copied from interface:LogAlertHow long should to display the alert for - this will be the value that was given when creating the alert.- Specified by:
getGivenTimeoutSecsin interfaceLogAlert- Returns:
- How long to display the timeout for - -1 for no explicit value, 0 to display it indefinitely, otherwise it is the number of seconds to display the value for.
-
getText
-
getError
-
getType
-
getContext
Description copied from interface:LogAlertReturns the objects associated with the alert - this will return null if the alert isn't associated with such any objects.- Specified by:
getContextin interfaceLogAlert
-
getTimeoutSecs
public int getTimeoutSecs()Description copied from interface:LogAlertHow long should to display the alert for - this will be either the explicit value given when creating the alert, or a value determined from the client's behaviour and its configuration settings.- Specified by:
getTimeoutSecsin interfaceLogAlert- Returns:
- How long to display the timeout for - 0 to display it indefinitely, otherwise it is the number of seconds to display the value for.
-
getPlainText
Description copied from interface:LogAlertReturns the text of the message - this will have any formatting stripped out.- Specified by:
getPlainTextin interfaceLogAlert- Returns:
- The text to display.
-