Java Code Examples for com.hazelcast.config.NetworkConfig#DEFAULT_PORT

The following examples show how to use com.hazelcast.config.NetworkConfig#DEFAULT_PORT . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KubernetesApiEndpointResolver.java    From hazelcast-kubernetes with Apache License 2.0 5 votes vote down vote up
private int port(KubernetesClient.EndpointAddress address) {
    if (this.port > 0) {
        return this.port;
    }
    if (address.getPort() != null) {
        return address.getPort();
    }
    return NetworkConfig.DEFAULT_PORT;
}
 
Example 2
Source File: DnsEndpointResolver.java    From hazelcast-kubernetes with Apache License 2.0 4 votes vote down vote up
private static int getHazelcastPort(int port) {
    if (port > 0) {
        return port;
    }
    return NetworkConfig.DEFAULT_PORT;
}