org.qi4j.api.io
Class Transforms.ProgressLog<T>
java.lang.Object
org.qi4j.api.io.Transforms.ProgressLog<T>
- Type Parameters:
T
- type of items to be transferred
- All Implemented Interfaces:
- Function<T,T>
- Enclosing class:
- Transforms
public static class Transforms.ProgressLog<T>
- extends Object
- implements Function<T,T>
Track progress of transfer by emitting a log message in given intervals
Method Summary |
T |
map(T t)
Map a single item from one type to another |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transforms.ProgressLog
public Transforms.ProgressLog(org.slf4j.Logger logger,
String format,
long interval)
map
public T map(T t)
- Description copied from interface:
Function
- Map a single item from one type to another
- Specified by:
map
in interface Function<T,T>
- Parameters:
t
- the input item
- Returns:
- the mapped item