/** * Sets address translator. * * @param translator Address translator. */ @SuppressWarnings("UnusedDeclaration") public void setAddressTranslator(AddressTranslator translator) { addrTranslator = translator; invalidate(); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { fetchSize = (Integer)in.readObject(); readConsistency = (ConsistencyLevel)in.readObject(); writeConsistency = (ConsistencyLevel)in.readObject(); user = U.readString(in); pwd = U.readString(in); port = (Integer)in.readObject(); contactPoints = (List<InetAddress>)in.readObject(); contactPointsWithPorts = (List<InetSocketAddress>)in.readObject(); maxSchemaAgreementWaitSeconds = (Integer)in.readObject(); protoVer = (Integer)in.readObject(); compression = U.readString(in); useSSL = (Boolean)in.readObject(); collectMetrix = (Boolean)in.readObject(); jmxReporting = (Boolean)in.readObject(); creds = (Credentials)in.readObject(); loadBalancingPlc = (LoadBalancingPolicy)readObject(in); reconnectionPlc = (ReconnectionPolicy)readObject(in); addrTranslator = (AddressTranslator)readObject(in); speculativeExecutionPlc = (SpeculativeExecutionPolicy)readObject(in); authProvider = (AuthProvider)readObject(in); sslOptions = (SSLOptions)readObject(in); poolingOptions = (PoolingOptions)readObject(in); sockOptions = (SocketOptions)readObject(in); nettyOptions = (NettyOptions)readObject(in); }
/** * Sets address translator. * * @param translator Address translator. */ @SuppressWarnings("UnusedDeclaration") public void setAddressTranslator(AddressTranslator translator) { this.addrTranslator = translator; invalidate(); }
@Override public AddressTranslator build() { return new EC2MultiRegionAddressTranslator(); }
/** * @return the addressTranslater */ public AddressTranslator getAddressTranslator() { return addressTranslator; }
/** * @param addressTranslater * the addressTranslater to set */ public void setAddressTranslater(AddressTranslator addressTranslator) { this.addressTranslator = addressTranslator; }
AddressTranslator build();