T
- the type of source data modelspublic interface DrainDriver<T> extends Preparable, Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes this object.
|
void |
prepare()
Prepares this driver to invoke
put(Object) method. |
void |
put(T object)
Puts each data model object into the connected resource.
|
void prepare() throws IOException
put(Object)
method.
This method will be invoked before put(Object)
only once.
This operation can execute only on the same thread as created this object.prepare
in interface Preparable
IOException
- if failed to beginvoid put(T object) throws IOException
object
- the data model object to be putIOException
- if failed to put dataIllegalArgumentException
- if the specified object is not validvoid close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
- if failed to connectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.