- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
@Override protected void before() throws Throwable { WriteServerConfig config = WriteServerConfig.writeBuilder() .withAppName(name) .withVipAddress(name) .withReadClusterVipAddress(readClusterName) .withDataCenterType(DataCenterType.Basic) .withHttpPort(0) .withRegistrationPort(0) .withDiscoveryPort(0) .withReplicationPort(0) .withCodec(codec) .withShutDownPort(0) .withWebAdminPort(0) .withReplicationRetryMillis(1000) .build(); Observable<ChangeNotification<Server>> noPeers = Observable.never(); server = new EmbeddedWriteServer(config, noPeers, noPeers, false, false); server.start(); }
.withServerList(new String[]{writeServerAddress.toWriteAddressString()}) .withCodec(codec) .withHttpPort(httpPort) .withShutDownPort(0) // We do not run shutdown service in embedded server .withWebAdminPort(adminPort)