private int getMaxConfiguredReplicaCount ( ) { if ( maxConfiguredReplicaCount > 0 ) { return maxConfiguredReplicaCount ; } else { final ClientMessage request = PNCounterGetConfiguredReplicaCountCodec . encodeRequest ( name ) ; final ClientMessage response = invoke ( request ) ; final PNCounterGetConfiguredReplicaCountCodec . ResponseParameters resultParameters = PNCounterGetConfiguredReplicaCountCodec . decodeResponse ( response ) ; maxConfiguredReplicaCount = resultParameters . response ; } return maxConfiguredReplicaCount ; }
Returns the max configured replica count . When invoked for the first time this method will fetch the configuration from a cluster member .