org.apache.flume.channel.jdbc.impl
Class JdbcTransactionImpl

java.lang.Object
  extended by org.apache.flume.channel.jdbc.impl.JdbcTransactionImpl
All Implemented Interfaces:
Transaction

public class JdbcTransactionImpl
extends Object
implements Transaction


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.flume.Transaction
Transaction.TransactionState
 
Constructor Summary
protected JdbcTransactionImpl(DataSource dataSource, JdbcTransactionFactory factory, JdbcChannelProviderImpl provider)
           
 
Method Summary
 void begin()
           
 void close()
           
 void commit()
           
protected  Connection getConnection()
           
protected  void incrementPersistedEventCount()
           
protected  void incrementRemovedEventCount()
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcTransactionImpl

protected JdbcTransactionImpl(DataSource dataSource,
                              JdbcTransactionFactory factory,
                              JdbcChannelProviderImpl provider)
Method Detail

begin

public void begin()
Specified by:
begin in interface Transaction

commit

public void commit()
Specified by:
commit in interface Transaction

rollback

public void rollback()
Specified by:
rollback in interface Transaction

close

public void close()
Specified by:
close in interface Transaction

getConnection

protected Connection getConnection()

incrementRemovedEventCount

protected void incrementRemovedEventCount()

incrementPersistedEventCount

protected void incrementPersistedEventCount()


Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.