public class UDPDiscoveryManager extends Object
Modifier and Type | Method and Description |
---|---|
static UDPDiscoveryManager |
getInstance()
Singleton
|
UDPDiscoveryService |
getService(String discoveryAddress,
int discoveryPort,
int servicePort,
ICompositeCacheManager cacheMgr)
Deprecated.
Specify serializer implementation explicitly, allow to specify udpTTL
|
UDPDiscoveryService |
getService(String discoveryAddress,
int discoveryPort,
String serviceAddress,
int servicePort,
int updTTL,
ICompositeCacheManager cacheMgr,
IElementSerializer serializer)
Creates a service for the address and port if one doesn't exist already.
|
public static UDPDiscoveryManager getInstance()
@Deprecated public UDPDiscoveryService getService(String discoveryAddress, int discoveryPort, int servicePort, ICompositeCacheManager cacheMgr)
We need to key this using the listener port too. TODO think of making one discovery service work for multiple types of clients.
discoveryAddress
- discoveryPort
- servicePort
- cacheMgr
- public UDPDiscoveryService getService(String discoveryAddress, int discoveryPort, String serviceAddress, int servicePort, int updTTL, ICompositeCacheManager cacheMgr, IElementSerializer serializer)
We need to key this using the listener port too. TODO think of making one discovery service work for multiple types of clients.
discoveryAddress
- discoveryPort
- serviceAddress
- servicePort
- updTTL
- cacheMgr
- serializer
- Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.