Package com.zeroc.Ice

Class ThreadHookPlugin

java.lang.Object
com.zeroc.Ice.ThreadHookPlugin
All Implemented Interfaces:
Plugin

public class ThreadHookPlugin extends Object implements Plugin
Class to support thread notification hooks. Applications using thread notifications hooks instantiate a ThreadHookPlugin with a thread start and threaed stop Runnable and return the instance from their PluginFactory implementation.
See Also:
  • Constructor Details

    • ThreadHookPlugin

      public ThreadHookPlugin(Communicator communicator, Runnable threadStart, Runnable threadStop)
      Installs thread notification hooks for a communicator.
      Parameters:
      communicator - The communicator using the thread notification hooks.
      threadStart - The callback for newly started threads.
      threadStop - The callback for stopped threads.
  • Method Details

    • initialize

      public void initialize()
      Called by the Ice run time during communicator initialization. The derived class can override this method to perform any initialization that might be required by custom thread notification hooks.
      Specified by:
      initialize in interface Plugin
    • destroy

      public void destroy()
      Called by the Ice run time when the communicator is destroyed. The derived class can override this method to perform any finalization that might be required by custom thread notification hooks.
      Specified by:
      destroy in interface Plugin