+ /**
+ * This is called via blueprint xml as the builder pattern can't be used.
+ */
+ @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE",
+ justification = "Findbugs flags this as an unconfirmed cast of return value but the build method clearly "
+ + "returns RemoteRpcProviderConfig. Perhaps it's confused b/c the build method is overloaded and "
+ + "and differs in return type from the base class.")
+ public static RemoteRpcProviderConfig newInstance(final String actorSystemName, final boolean metricCaptureEnabled,
+ final int mailboxCapacity) {
+ return new Builder(actorSystemName).metricCaptureEnabled(metricCaptureEnabled)
+ .mailboxCapacity(mailboxCapacity).build();
+ }
+
+ public static class Builder extends CommonConfig.Builder<Builder> {