public class CacheHandler extends Handler
Constructor and Description |
---|
CacheHandler()
Constructs the object with default parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the Handler and free all associated resources.
|
void |
flush()
Removes all records from the vector.
|
void |
publish(LogRecord record)
Publish a LogRecord.
|
void |
transferRecords(Handler target)
Transfers all logging records chached to the handler passed in.
|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
public void publish(LogRecord record)
public void close() throws SecurityException
close
in class Handler
SecurityException
- if a security manager exists and if the caller does not have
LoggingPermission("control").public void transferRecords(Handler target)
target
- the target handler to publish the cache contentCopyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.