Package com.zeroc.Ice
Class ThreadHookPlugin
java.lang.Object
com.zeroc.Ice.ThreadHookPlugin
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionThreadHookPlugin
(Communicator communicator, Runnable threadStart, Runnable threadStop) Installs thread notification hooks for a communicator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Called by the Ice run time when the communicator is destroyed.void
Called by the Ice run time during communicator initialization.
-
Constructor Details
-
ThreadHookPlugin
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 interfacePlugin
-
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.
-