public class TimerPersistenceHandlerDecorator extends AbstractPersistenceHandlerDecorator
PersistenceHandler
wrapper that measures elapsed time between the start and the end of an I/O process.Constructor and Description |
---|
TimerPersistenceHandlerDecorator(PersistenceHandler handler)
Constructs a new
TimerPersistenceHandlerDecorator on the underlying handler . |
TimerPersistenceHandlerDecorator(PersistenceHandler handler,
String name)
Constructs a new
TimerPersistenceHandlerDecorator with the given name on the underlying
handler . |
Modifier and Type | Method and Description |
---|---|
void |
processEndDocument()
Process the end of a document.
|
void |
processStartDocument()
Process the start of a document.
|
processAttribute, processCharacters, processEndElement, processReference, processStartElement
public TimerPersistenceHandlerDecorator(PersistenceHandler handler, String name)
TimerPersistenceHandlerDecorator
with the given name
on the underlying
handler
.handler
- the underlying handlername
- the name of this handlerpublic TimerPersistenceHandlerDecorator(PersistenceHandler handler)
TimerPersistenceHandlerDecorator
on the underlying handler
.handler
- the underlying handlerpublic void processStartDocument()
InputHandler
processStartDocument
in interface InputHandler
processStartDocument
in class AbstractPersistenceHandlerDecorator
InputNotifier.notifyStartDocument()
public void processEndDocument()
InputHandler
processEndDocument
in interface InputHandler
processEndDocument
in class AbstractPersistenceHandlerDecorator
InputNotifier.notifyEndDocument()
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.