Class WhileLockedProcessor

java.lang.Object
org.springframework.integration.util.WhileLockedProcessor

@Deprecated(since="6.2", forRemoval=true) public abstract class WhileLockedProcessor extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
A simple strategy callback class that allows you to provide a code that needs to be executed under Lock provided by LockRegistry. A typical usage would be to provide implementation of whileLocked() method and then call doWhileLocked().
Since:
2.2
Author:
Oleg Zhurakousky, Artem Bilan
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected abstract void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Override this method to provide the behavior that needs to be executed while under the lock.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WhileLockedProcessor

      public WhileLockedProcessor(LockRegistry lockRegistry, Object key)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • doWhileLocked

      public final void doWhileLocked() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • whileLocked

      protected abstract void whileLocked() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Override this method to provide the behavior that needs to be executed while under the lock.
      Throws:
      IOException - Any IOException.