T
- the data model type.public class VoidDrainDriver<T> extends Object implements DrainDriver<T>
DrainDriver
which drops any inputs.Constructor and Description |
---|
VoidDrainDriver() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes this object.
|
void |
prepare()
Prepares this driver to invoke
DrainDriver.put(Object) method. |
void |
put(T object)
Puts each data model object into the connected resource.
|
public void prepare()
DrainDriver
DrainDriver.put(Object)
method.
This method will be invoked before DrainDriver.put(Object)
only once.
This operation can execute only on the same thread as created this object.prepare
in interface DrainDriver<T>
prepare
in interface Preparable
public void put(T object)
DrainDriver
put
in interface DrainDriver<T>
object
- the data model object to be putpublic void close()
DrainDriver
close
in interface DrainDriver<T>
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.