public abstract class LogMessageHandler extends Object
| Constructor and Description |
|---|
LogMessageHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearMessages()
Clears out message buffer(s)
|
abstract void |
flush() |
LogMessage |
get(int nIndex)
Retrieve a message based on its index.
|
long |
getThreadId()
Retrieve the messagehandler's thread id
|
int |
getThreshold() |
abstract void |
sendMessage(LogMessage oMessage)
Pure virtual function.
|
void |
setThreshold(int nThreshold) |
int |
size()
Retrieve the number of LogMessageobjects are in the collection.
|
boolean |
supportsRead()
Check whether the handler supports read operations.
|
public LogMessage get(int nIndex)
nIndex - - index into the collectionpublic void clearMessages()
public long getThreadId()
public int getThreshold()
public abstract void sendMessage(LogMessage oMessage)
LogMessage poMessage = new LogMessage(oMessage);
getMessages().append(poMessage);
oMessage - - the message to sendpublic void setThreshold(int nThreshold)
public abstract void flush()
public int size()
public boolean supportsRead()
supportsRead() method returns true, then
the messageHandler is capable of caching all of it's messages. These
messages can be accessed via operator[]. The
size() method can be used to find out the number of
messages cached.Copyright © 2010 - 2020 Adobe. All Rights Reserved