public class BatchBuilderImpl extends java.lang.Object implements BatchBuilder, Configurable, Manageable, BatchBuilderMXBean
Batch
instances.Constructor and Description |
---|
BatchBuilderImpl()
Constructs a BatchBuilderImpl
|
BatchBuilderImpl(int jdbcBatchSize)
Constructs a BatchBuilderImpl
|
Modifier and Type | Method and Description |
---|---|
Batch |
buildBatch(BatchKey key,
JdbcCoordinator jdbcCoordinator)
Build a batch.
|
void |
configure(java.util.Map configurationValues)
Configure the service.
|
int |
getJdbcBatchSize() |
java.lang.Object |
getManagementBean()
The the management bean (MBean) for this service.
|
java.lang.String |
getManagementDomain()
Get the domain name to be used in registering the management bean.
|
java.lang.String |
getManagementServiceType()
Allows the service to specify a special 'serviceType' portion of the object name.
|
void |
setJdbcBatchSize(int jdbcBatchSize) |
public BatchBuilderImpl()
public BatchBuilderImpl(int jdbcBatchSize)
jdbcBatchSize
- The batch jdbcBatchSize to use.public void configure(java.util.Map configurationValues)
Configurable
configure
in interface Configurable
configurationValues
- The configuration properties.public int getJdbcBatchSize()
getJdbcBatchSize
in interface BatchBuilderMXBean
public void setJdbcBatchSize(int jdbcBatchSize)
setJdbcBatchSize
in interface BatchBuilderMXBean
public Batch buildBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)
BatchBuilder
buildBatch
in interface BatchBuilder
key
- Value to uniquely identify a batchjdbcCoordinator
- The JDBC coordinator with which to coordinate effortspublic java.lang.String getManagementDomain()
Manageable
null
to indicate Hibernate's
default domain (org.hibernate.core
) should be used.getManagementDomain
in interface Manageable
public java.lang.String getManagementServiceType()
Manageable
null
indicates
we should use the default scheme, which is to use the name of the service impl class for this purpose.getManagementServiceType
in interface Manageable
public java.lang.Object getManagementBean()
Manageable
getManagementBean
in interface Manageable
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.