public class SupplierPeriodicSource<T> extends PeriodicSource<T>
Constructor and Description |
---|
SupplierPeriodicSource(long period,
java.util.concurrent.TimeUnit unit,
Supplier<T> data) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
fetchTuples() |
void |
initialize(OpletContext<java.lang.Void,T> context)
Initialize the oplet.
|
getPeriod, getRunnable, getUnit, run, setPeriod, start
getDestination, getInputs, submit
getOpletContext
public void initialize(OpletContext<java.lang.Void,T> context)
Oplet
initialize
in interface Oplet<java.lang.Void,T>
initialize
in class PeriodicSource<T>
public void close() throws java.lang.Exception
java.lang.Exception
public void fetchTuples()
fetchTuples
in class PeriodicSource<T>
Copyright IBM 2015,2016 - 2f6ad0e-20160307-0902