public class UDPDiscoverySenderThread extends Object implements Runnable
Constructor and Description |
---|
UDPDiscoverySenderThread(UDPDiscoveryAttributes attributes,
ArrayList<String> cacheNames)
Constructs the sender with the port to tell others to connect to.
|
Modifier and Type | Method and Description |
---|---|
protected ArrayList<String> |
getCacheNames() |
void |
run()
Send a message.
|
protected void |
setCacheNames(ArrayList<String> cacheNames) |
protected void |
shutdown()
Issues a remove broadcast to the others.
|
public UDPDiscoverySenderThread(UDPDiscoveryAttributes attributes, ArrayList<String> cacheNames)
On construction the sender will request that the other caches let it know their addresses.
attributes
- host, port, etc.cacheNames
- List of strings of the names of the region participating.protected void setCacheNames(ArrayList<String> cacheNames)
cacheNames
- The cacheNames to set.protected ArrayList<String> getCacheNames()
protected void shutdown()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.