com.hazelcast.wan
Interface WanReplicationService

All Superinterfaces:
CoreService
All Known Implementing Classes:
WanReplicationServiceImpl

public interface WanReplicationService
extends CoreService

This is the WAN replications service API core interface. The WanReplicationService needs to be capable of creating the actual WanReplicationPublisher instances to replicate values to other clusters over the wide area network, so it has to deal with long delays, slow uploads and higher latencies.


Field Summary
static String SERVICE_NAME
          The service identifier
 
Method Summary
 WanReplicationPublisher getWanReplicationPublisher(String name)
          Creates a new WanReplicationPublisher by the given name, if already existing returns the previous instance.
 void handleEvent(Packet packet)
          This method is called when a replication packet arrives at the connection handler.
 void shutdown()
          Starts the shutdown process of the WAN replication service
 

Field Detail

SERVICE_NAME

static final String SERVICE_NAME
The service identifier

See Also:
Constant Field Values
Method Detail

getWanReplicationPublisher

WanReplicationPublisher getWanReplicationPublisher(String name)
Creates a new WanReplicationPublisher by the given name, if already existing returns the previous instance.

Parameters:
name - name of the WAN replication configuration
Returns:
instance of the corresponding replication publisher

handleEvent

void handleEvent(Packet packet)
This method is called when a replication packet arrives at the connection handler. WAN replication messages are handled directly instead of going through the normal message process.

Parameters:
packet - the WAN replication packet to process

shutdown

void shutdown()
Starts the shutdown process of the WAN replication service



Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.