package org.openspaces.admin.gateway;

import org.openspaces.admin.space.Space;

/**
 * A sink is a {@link GatewayProcessingUnit} component which handles incoming replication from other gateways.
 * The sink is also used to bootstrap a space from another space, and it takes part in both sides of the
 * bootstrap process. It is used for initiating a bootstrap process and replicate incoming data of the
 * bootstrap process to the local {@link Space}. 
 * And it is used to respond to a remote bootstrap request by providing the relevant bootstrap data
 * to the remote sink.
 *   
 * @author eitany
 * @since 8.0.4
 */
public interface GatewaySink {
    
    
    /**
     * Returns the gateway this sink is part of.
     */
    GatewayProcessingUnit getGatewayProcessingUnit();
    
    /**
     * Enables incoming replication for this sink, only relevant if this sink {@link GatewaySink#requiresBootstrapOnStartup()}
     * and no bootstrap was executed yet, otherwise the sink incoming replication is already enabled. 
     */
    void enableIncomingReplication();
    
    /**
     * Returns the gateway sink sources of this sink. 
     */
    GatewaySinkSource[] getSources();
    
    /**
     * Returns <code>true</code> if this sink has a source gateway with the specified name; <code>false</code> otherwise.
     */
    boolean containsSource(String sourceGatewayName);
    
    /**
     * Returns the specified source gateway or null if no such source gateway exists. 
     */
    GatewaySinkSource getSourceByName(String sourceGatewayName);
    
    /**
     * Returns whether this sink is configured to require a bootstrap on startup.
     */
    boolean requiresBootstrapOnStartup();
    
    /**
     * Returns the url of the space this sink is replicating in to. 
     */
    String getLocalSpaceUrl();
}

@@ -1438,24 +1438,50 @@
   * Returns 
+a gateway sink source for 
 the specifie
@@ -1497,16 +1497,21 @@
 gateway 
+name 
 or null 
@@ -1521,31 +1521,24 @@
 no such 
-source 
 gateway 
 exists. 
@@ -1529,16 +1529,28 @@
 gateway 
+sink source 
 exists. 

Fix jdoc