com.hazelcast.client.spi.impl
Class DefaultAddressTranslator

java.lang.Object
  extended by com.hazelcast.client.spi.impl.DefaultAddressTranslator
All Implemented Interfaces:
AddressTranslator

public class DefaultAddressTranslator
extends Object
implements AddressTranslator

Default Address Translator is a no-op. It always returns the given address.


Constructor Summary
DefaultAddressTranslator()
           
 
Method Summary
 void refresh()
          Refreshes the internal lookup table if necessary.
 Address translate(Address address)
          Translates the given address to another address specific to network or service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAddressTranslator

public DefaultAddressTranslator()
Method Detail

translate

public Address translate(Address address)
Description copied from interface: AddressTranslator
Translates the given address to another address specific to network or service

Specified by:
translate in interface AddressTranslator
Returns:
new address if given address is known, otherwise return null

refresh

public void refresh()
Description copied from interface: AddressTranslator
Refreshes the internal lookup table if necessary.

Specified by:
refresh in interface AddressTranslator


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.