org.eclipse.rdf4j.federated.write

## Class DefaultWriteStrategyFactory

- java.lang.Object
- - org.eclipse.rdf4j.federated.write.DefaultWriteStrategyFactory

- All Implemented Interfaces:
    WriteStrategyFactory

      public class DefaultWriteStrategyFactory
      extends Object
      implements WriteStrategyFactory

  Default implementation of `WriteStrategyFactory`.

  The default implementation uses the `RepositoryWriteStrategy` with the first discovered writable `Endpoint`. In none is found, the `ReadOnlyWriteStrategy` is used.

  Author:
    Andreas Schwarte

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultWriteStrategyFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `WriteStrategy` | `create(List<Endpoint> members, FederationContext federationContext)` Create the `WriteStrategy` using the provided context

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultWriteStrategyFactory

          public DefaultWriteStrategyFactory()

  - ### Method Detail

    - #### create

          public WriteStrategy create(List<Endpoint> members,
                                      FederationContext federationContext)

      Description copied from interface: `WriteStrategyFactory`
      Create the `WriteStrategy` using the provided context
      Specified by:
        `create` in interface `WriteStrategyFactory`
      Parameters:
        `members` - the current federation members
        `federationContext` - the federation context
      Returns:
        the `WriteStrategy`

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.