L
- The Logger
type to be supported. As the
AbstractCompositeLogger
is being extended to support other
Logger
types, we have to provide this generic parameter (for
example, sub-classes make use of the AbstractCompositeLogger.getLoggers()
method to
access the encapsulated Logger
instances being sub-types of
the Logger
interface).T
- The type of the Record
instances managed by the
Logger
.public abstract class AbstractCompositeTrimLogger<L extends TrimLogger<T>,T> extends AbstractCompositeQueryLogger<L,T> implements TrimLogger<T>
CompositeTrimLoggerImpl
extends the
CompositeQueryLoggerImpl
with the trim
logger functionality. In contrast to the
AbstractCompositeLogger.log(org.refcodes.tabular.Record)
method, which is forwarded to exactly one of the encapsulated trim logger
instances, the
deleteLogs(org.refcodes.criteria.Criteria)
and clear()
method
calls are forwarded to all of the encapsulated
TrimLogger
instances (in case, partitioning is
needed, take a look at the
PartedTrimLoggerImpl
).CompositeTrimLoggerImpl
Constructor and Description |
---|
AbstractCompositeTrimLogger(L... aLoggers)
Constructs an
AbstractCompositeTrimLogger from the provided
Logger instances. |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
deleteLogs(org.refcodes.criteria.Criteria aCriteria)
Deletes logged
Record instances according to the provided
Criteria . |
findLogs, findLogs, findLogs, findLogs, findLogs, findLogs, findLogs
destroy, getLoggers, log
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@SafeVarargs public AbstractCompositeTrimLogger(L... aLoggers)
AbstractCompositeTrimLogger
from the provided
Logger
instances.aLoggers
- The Logger
instances to be used for the
AbstractCompositeTrimLogger
.public void clear()
clear
in interface org.refcodes.collection.Clearable
public void deleteLogs(org.refcodes.criteria.Criteria aCriteria)
TrimLogger
Record
instances according to the provided
Criteria
.deleteLogs
in interface TrimLogger<T>
aCriteria
- The Criteria
to be applied when deleting
previously logged Record
instances.Copyright © 2016. All rights reserved.