Class UDPDiscoverySenderThread

java.lang.Object
org.apache.commons.jcs3.utils.discovery.UDPDiscoverySenderThread
All Implemented Interfaces:
Runnable

@Deprecated public class UDPDiscoverySenderThread extends Object implements Runnable
Deprecated.
Functionality moved to UDPDiscoveryService
Used to periodically broadcast our location to other caches that might be listening.
  • Constructor Details

    • UDPDiscoverySenderThread

      Deprecated.
      Constructs the sender with the port to tell others to connect to.

      On construction the sender will request that the other caches let it know their addresses.

      Parameters:
      attributes - host, port, etc.
      cacheNames - List of strings of the names of the region participating.
  • Method Details

    • setCacheNames

      protected void setCacheNames(ArrayList<String> cacheNames)
      Deprecated.
      Parameters:
      cacheNames - The cacheNames to set.
    • getCacheNames

      Deprecated.
      Returns:
      Returns the cacheNames.
    • run

      public void run()
      Deprecated.
      Send a message.
      Specified by:
      run in interface Runnable
    • shutdown

      protected void shutdown()
      Deprecated.
      Issues a remove broadcast to the others.