Class UnregisterEventContainerTask

java.lang.Object
org.openspaces.events.support.UnregisterEventContainerTask
All Implemented Interfaces:
Serializable, Task<Boolean>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
UnregisterDistributedEventContainerTask

public class UnregisterEventContainerTask extends Object implements Task<Boolean>, org.springframework.context.ApplicationContextAware
A task that unregisters (stops and disposes it) a dynamically added event container (using Polling or Notify. Returns true if the event container was found and unregistered correctly.
Author:
kimchy
See Also:
  • Constructor Details

    • UnregisterEventContainerTask

      protected UnregisterEventContainerTask()
    • UnregisterEventContainerTask

      public UnregisterEventContainerTask(String containerName)
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • execute

      public Boolean execute() throws Exception
      Description copied from interface: Task
      Computes a result, or throws an exception if unable to do so.
      Specified by:
      execute in interface Task<Boolean>
      Returns:
      computed result
      Throws:
      Exception - if unable to compute a result