Creates a new address selector.

@param selectionStrategy The server selection strategy.
@return A new address selector.
966784
public MemberSelector createSelector(CommunicationStrategy selectionStrategy) {
    MemberSelector selector = new MemberSelector(leader, members, selectionStrategy, this);
    selectors.add(selector);
    return selector;
  }
1025276
@Override
	public <T extends Endpoint> Strategy<T> create() {
		return new RoundRobinStrategy<T>(broker, preferLocal);
	}
1177963
public void setSelectAllMode(final SelectAllType selectAllMode) {
		getOrCreateComponentModel().selectAllMode = selectAllMode == null ? SelectAllType.TEXT : selectAllMode;
	}
98037
public static Function<Service<HttpRequest, HttpResponse>, ThrottlingHttpService>
    newDecorator(ThrottlingStrategy<HttpRequest> strategy) {
        requireNonNull(strategy, "strategy");
        return delegate -> new ThrottlingHttpService(delegate, strategy);
    }
239587
public final ChannelAddress newChannelAddress(URI location, Map<String, Object> options) {
        String locationSchemeName = location.getScheme();
        String schemeName = getSchemeName();

        if (locationSchemeName == null || !locationSchemeName.equals(schemeName)) {
            throw new ChannelException(String.format("Location scheme %s does not match expected scheme %s", location,
                    schemeName));
        }

        // make the port explicit
        int locationPort = location.getPort();
        if (locationPort == -1) {
            int newLocationPort = getSchemePort();
            if (newLocationPort != -1) {
                try {
                    String locationUserInfo = location.getUserInfo();
                    String locationHost = location.getHost();
                    String locationPath = location.getPath();
                    String locationQuery = location.getQuery();
                    String locationFragment = location.getFragment();
                    location = new URI(locationSchemeName, locationUserInfo, locationHost, newLocationPort,
                            locationPath, locationQuery, locationFragment);
                } catch (URISyntaxException e) {
                    throw new ChannelException(e);
                }
            }
        }

        URI transportURI = (URI) options.remove("transport");
        if (transportURI == null) {
            LocationFactory transportFactory = getTransportFactory();
            if (transportFactory != null) {
                transportURI = transportFactory.createURI(location);
            }
        }

        ChannelAddress transport = null;
        if (transportURI != null) {
            transport = channelAddressFactory.newChannelAddress(transportURI, options);
        }

        return newChannelAddress0(location, transport, options);
    }
1277976
public static DestinationAddressAttribute createDestinationAddressAttribute(
			TransportAddress address) {
		DestinationAddressAttribute attribute = new DestinationAddressAttribute();

		attribute.setAddress(address);

		return attribute;
	}
844159
public JsHandlerRegistration addFeatureSelectionHandler(final FeatureSelectedHandler selectedHandler,
			final FeatureDeselectedHandler deselectedHandler) {
		if (((MapImpl) map).getMapWidget().getMapModel().isInitialized()) {
			return addFeatureSelectionHandler2(selectedHandler, deselectedHandler);
		}
		final CallbackHandlerRegistration callbackRegistration = new CallbackHandlerRegistration();
		((MapImpl) map).getMapWidget().getMapModel().addMapModelChangedHandler(new MapModelChangedHandler() {

			public void onMapModelChanged(MapModelChangedEvent event) {
				JsHandlerRegistration temp = addFeatureSelectionHandler2(selectedHandler, deselectedHandler);
				callbackRegistration.setRegistration(temp);
			}
		});
		return callbackRegistration;
	}
753737
@Override
	public <T extends Endpoint> Strategy<T> create() {
		if (transporter == null) {
			return new RoundRobinStrategy<T>(broker, preferLocal);
		}
		return new NetworkLatencyStrategy<T>(broker, preferLocal, maxTries, this);
	}
288633
public static Selector getSelector(MutableCallSite callSite, Class sender, String methodName, int callID, boolean safeNavigation, boolean thisCall, boolean spreadCall, Object[] arguments) {
        CALL_TYPES callType = CALL_TYPES_VALUES[callID];
        switch (callType) {
            case INIT: return new InitSelector(callSite, sender, methodName, callType, safeNavigation, thisCall, spreadCall, arguments);
            case METHOD: return new MethodSelector(callSite, sender, methodName, callType, safeNavigation, thisCall, spreadCall, arguments);
            case GET: 
                return new PropertySelector(callSite, sender, methodName, callType, safeNavigation, thisCall, spreadCall, arguments);
            case SET:
                throw new GroovyBugError("your call tried to do a property set, which is not supported.");
            case CAST:  return new CastSelector(callSite, arguments);
            default: throw new GroovyBugError("unexpected call type");
        }
    }
1011148
public CacheConfigurationBuilder<K, V> withResilienceStrategy(ResilienceStrategy<K, V> resilienceStrategy) {
    return addOrReplaceConfiguration(new DefaultResilienceStrategyConfiguration(requireNonNull(resilienceStrategy, "Null resilienceStrategy")));
  }
280609
public EvictionConfigurationBuilder strategy(EvictionStrategy evictionStrategy) {
      memory().evictionStrategy(evictionStrategy);
      attributes.attribute(STRATEGY).set(evictionStrategy);
      return this;
   }
1113300
@Action(
            publishing = Publishing.ENABLED // uses wrapper factory
    )
    public PublishedCustomer placeOrderToNewAddress(
            @ParameterLayout(named="Name of product to order")
            final String name,
            @ParameterLayout(named="New address Line 1")
            final String line1,
            @Parameter(optionality = Optionality.OPTIONAL)
            @ParameterLayout(named="New address Line 2")
            final String line2,
            @ParameterLayout(named="New address Town")
            final String town) {
        wrapperFactory.wrap(this).addOrder(name);
        wrapperFactory.wrap(this).updateAddress(line1, line2, town);
        return this;
    }
299675
@Bean
	@ConditionalOnMissingBean(CacheStrategy.class)
	@Order(-90)
	<K, V> CacheStrategy<K, V> defaultCacheStrategy() {
		LOGGER.debug("Creating cache strategy 'LruMemoryCacheStrategy'");
		return new LruMemoryCacheStrategy<>();
	}
1240819
protected final void setStorageStrategy(int setStrategy)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "setStorageStrategy", new Integer(setStrategy));

    storageStrategy = setStrategy;

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "setStorageStrategy");
  }
301069
public function setExclusionStrategy(ExclusionStrategyInterface $exclusionStrategy = null)
    {
        $this->cleanUpExclusionStrategies();
        if ($exclusionStrategy) {
            $this->addExclusionStrategy($exclusionStrategy);
        }

        return $this;
    }
1159992
public SipServletRequest createRequest(SipApplicationSession appSession,
			String method, Address from, Address to) {
		SipServletRequest sipServletRequest = sipFactoryImpl.createRequest(appSession, method, from, to, ((MobicentsSipApplicationSession)appSession).getCurrentRequestHandler(), null, null);
		return sipServletRequest;
	}
231102
public static ITargetInjector with(final IInjectionStrategy strategy) {
		return new ITargetInjector() {
			public void bean(Object target) {
				strategy.inject(target);
			}
		};
	}