public abstract class DynamicTCPRemoteCommitProvider extends TCPRemoteCommitProvider
TCPRemoteCommitProvider.HostAddress
_addresses, _addressesLock, _port, s_loc
eventManager, log
Constructor and Description |
---|
DynamicTCPRemoteCommitProvider() |
Modifier and Type | Method and Description |
---|---|
void |
endConfiguration()
Subclasses that need to perform actions in
Configurable.endConfiguration() must invoke this method. |
protected abstract List<String> |
fetchDynamicAddresses() |
int |
getCacheDurationMillis() |
void |
setAddresses(String names)
Sets the list of addresses of peers to which this provider will send events to.
|
void |
setCacheDurationMillis(int _cacheDurationMillis) |
broadcast, close, getMaxIdle, getMaxTotal, getNumBroadcastThreads, getPort, getRecoveryTimeMillis, setMaxActive, setMaxIdle, setMaxTotal, setNumBroadcastThreads, setPort, setRecoveryTimeMillis
fireEvent, setConfiguration, setRemoteCommitEventManager, startConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConfiguration, startConfiguration
public DynamicTCPRemoteCommitProvider() throws UnknownHostException
UnknownHostException
public int getCacheDurationMillis()
public void setCacheDurationMillis(int _cacheDurationMillis)
public final void setAddresses(String names) throws UnknownHostException
TCPRemoteCommitProvider
names
list in the form of "myhost1:portA;myhost2:portB".setAddresses
in class TCPRemoteCommitProvider
names
- the list of addresses of peers to which this provider will send events toUnknownHostException
- in case peer name cannot be resolvedpublic void endConfiguration()
TCPRemoteCommitProvider
Configurable.endConfiguration()
must invoke this method.endConfiguration
in interface Configurable
endConfiguration
in class TCPRemoteCommitProvider
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.