Class DynamicTCPRemoteCommitProvider

    • Constructor Detail

      • DynamicTCPRemoteCommitProvider

        public DynamicTCPRemoteCommitProvider()
                                       throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
    • Method Detail

      • getCacheDurationMillis

        public int getCacheDurationMillis()
      • setCacheDurationMillis

        public void setCacheDurationMillis​(int _cacheDurationMillis)
      • setAddresses

        public final void setAddresses​(java.lang.String names)
                                throws java.net.UnknownHostException
        Description copied from class: TCPRemoteCommitProvider
        Sets the list of addresses of peers to which this provider will send events to. The peers are semicolon-separated names list in the form of "myhost1:portA;myhost2:portB".
        Overrides:
        setAddresses in class TCPRemoteCommitProvider
        Parameters:
        names - the list of addresses of peers to which this provider will send events to
        Throws:
        java.net.UnknownHostException - in case peer name cannot be resolved
      • fetchDynamicAddresses

        protected abstract java.util.List<java.lang.String> fetchDynamicAddresses()