B - 从数据库读取的原始记录对象类型public static class QueueBufferProducerAction.SimpleQueueProducerAction<B extends gu.sql2java.BaseBean> extends QueueBufferProducerAction<B,B>
QueueBufferProducerAction的简化版本,队列类型为数据库原始记录类型QueueBufferProducerAction.SimpleQueueProducerAction<B extends gu.sql2java.BaseBean>| 构造器和说明 |
|---|
SimpleQueueProducerAction(java.util.concurrent.atomic.AtomicBoolean stopped,
long rowCount)
构造方法
队列容量和插入队列超时时间使用默认值 |
SimpleQueueProducerAction(java.util.concurrent.BlockingQueue<java.util.List<B>> queue,
int bufferCapacity,
int queueTimeout,
java.util.concurrent.atomic.AtomicBoolean stopped,
long rowCount)
构造方法
|
SimpleQueueProducerAction(int queueCapaticy,
int bufferCapacity,
int queueTimeout,
java.util.concurrent.atomic.AtomicBoolean stopped,
boolean outputProgress,
long rowCount)
构造方法
|
SimpleQueueProducerAction(QueueBufferProducerAction.SimpleQueueProducerAction<B> action,
long rowCount)
构造方法
|
call, getBufferCapacity, getQueue, getRowCountpublic SimpleQueueProducerAction(java.util.concurrent.BlockingQueue<java.util.List<B>> queue, int bufferCapacity, int queueTimeout, java.util.concurrent.atomic.AtomicBoolean stopped, long rowCount)
bufferCapacity - 缓冲区容量queueTimeout - 插入队列超时时间(秒),
队列满后超过这个时间不能插入新记录即视消费端中止,并中止插入
小于等于0使用默认值QueueBufferProducerAction.DEFAULT_QUEUE_TIMEOUTstopped - 停止标志,为null忽略,为true时不再向队列添加数据,抛出QueueTimeoutException,结束循环rowCount - 当前查询的记录总数queueCapaticy - 队列容量,小于等于0使用默认值QueueBufferProducerAction.DEFAULT_QUEUE_CAPACITYtransformer - B到T的数据类型转换器public SimpleQueueProducerAction(int queueCapaticy,
int bufferCapacity,
int queueTimeout,
java.util.concurrent.atomic.AtomicBoolean stopped,
boolean outputProgress,
long rowCount)
queueCapaticy - 队列容量,小于等于0使用默认值QueueBufferProducerAction.DEFAULT_QUEUE_CAPACITYbufferCapacity - 缓冲区容量queueTimeout - 插入队列超时时间(秒),
队列满后超过这个时间不能插入新记录即视消费端中止,并中止插入
小于等于0使用默认值QueueBufferProducerAction.DEFAULT_QUEUE_TIMEOUTstopped - 停止标志,为null忽略,为true时不再向队列添加数据,抛出QueueTimeoutException,结束循环outputProgress - 是否输出进度rowCount - 记录总数public SimpleQueueProducerAction(java.util.concurrent.atomic.AtomicBoolean stopped,
long rowCount)
stopped - 停止标志,为null忽略,为true时不再向队列添加数据,抛出QueueTimeoutException,结束循环rowCount - 当前查询的记录总数public SimpleQueueProducerAction(QueueBufferProducerAction.SimpleQueueProducerAction<B> action, long rowCount)
Copyright © 2022. All Rights Reserved.