public class DefaultWriteStrategyFactory extends Object implements WriteStrategyFactory
WriteStrategyFactory
.
The default implementation uses the RepositoryWriteStrategy
with the first discovered writable
Endpoint
. In none is found, the ReadOnlyWriteStrategy
is used.
Constructor and Description |
---|
DefaultWriteStrategyFactory() |
Modifier and Type | Method and Description |
---|---|
WriteStrategy |
create(List<Endpoint> members,
FederationContext federationContext)
Create the
WriteStrategy using the provided context |
public WriteStrategy create(List<Endpoint> members, FederationContext federationContext)
WriteStrategyFactory
WriteStrategy
using the provided contextcreate
in interface WriteStrategyFactory
members
- the current federation membersfederationContext
- the federation contextWriteStrategy
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.