org.apache.activemq.store.jdbc
Class AbstractJDBCLocker
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.broker.AbstractLocker
org.apache.activemq.store.jdbc.AbstractJDBCLocker
- All Implemented Interfaces:
- Locker, org.apache.activemq.Service
- Direct Known Subclasses:
- DefaultDatabaseLocker, LeaseDatabaseLocker
public abstract class AbstractJDBCLocker
- extends AbstractLocker
| Methods inherited from class org.apache.activemq.util.ServiceSupport |
addServiceListener, dispose, doStart, doStop, isStarted, isStopped, isStopping, postStop, removeServiceListener, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.activemq.Service |
start, stop |
dataSource
protected DataSource dataSource
statements
protected Statements statements
createTablesOnStartup
protected boolean createTablesOnStartup
queryTimeout
protected int queryTimeout
AbstractJDBCLocker
public AbstractJDBCLocker()
configure
public void configure(PersistenceAdapter adapter)
throws IOException
- Throws:
IOException
setDataSource
public void setDataSource(DataSource dataSource)
setStatements
public void setStatements(Statements statements)
setQueryTimeout
protected void setQueryTimeout(Statement statement)
throws SQLException
- Throws:
SQLException
getQueryTimeout
public int getQueryTimeout()
setQueryTimeout
public void setQueryTimeout(int queryTimeout)
setCreateTablesOnStartup
public void setCreateTablesOnStartup(boolean createTablesOnStartup)
getConnection
protected Connection getConnection()
throws SQLException
- Throws:
SQLException
close
protected void close(Connection connection)
close
protected void close(Statement statement)
preStart
public void preStart()
- Overrides:
preStart in class ServiceSupport
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.