Class ThreadLocalCleanUpSynchronization

java.lang.Object
com.atlassian.confluence.internal.content.collab.ThreadLocalCleanUpSynchronization
All Implemented Interfaces:
Flushable, org.springframework.core.Ordered, org.springframework.transaction.support.TransactionSynchronization

public class ThreadLocalCleanUpSynchronization extends Object implements org.springframework.transaction.support.TransactionSynchronization
A TransactionSynchronization which can clean up ThreadLocal data after it is finish
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE

    Fields inherited from interface org.springframework.transaction.support.TransactionSynchronization

    STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    afterCompletion(int status)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.transaction.support.TransactionSynchronization

    beforeCommit, beforeCompletion, flush, getOrder, resume, savepoint, savepointRollback, suspend
  • Constructor Details

  • Method Details

    • afterCommit

      public void afterCommit()
      Specified by:
      afterCommit in interface org.springframework.transaction.support.TransactionSynchronization
    • afterCompletion

      public void afterCompletion(int status)
      Specified by:
      afterCompletion in interface org.springframework.transaction.support.TransactionSynchronization