public interface ReplicationConsumer
Modifier and Type | Field and Description |
---|---|
static boolean |
DIFFERED
A flag we used when we want to connect after a waiting delay
|
static boolean |
NOW
A flag we used when we want to connect without waiting
|
Modifier and Type | Method and Description |
---|---|
boolean |
connect(boolean now)
Connect the consumer, connection immediately or wait before reconnection
|
ReplicationConsumerConfig |
getConfig() |
String |
getId() |
void |
init(DirectoryService dirService)
Initializes the consumer
|
void |
ping()
Test the connection with the provider.
|
void |
setConfig(ReplicationConsumerConfig config)
Sets the configuration of the consumer
|
ReplicationStatusEnum |
startSync()
Starts the synchronization operation
|
void |
stop()
Stops the consumer
|
static final boolean NOW
static final boolean DIFFERED
void setConfig(ReplicationConsumerConfig config)
config
- the configuration of the consumerReplicationConsumerConfig getConfig()
void init(DirectoryService dirService) throws Exception
dirService
- the DirectoryServiceException
- If the initialization failedboolean connect(boolean now)
now
- A param that tells the consumer to connect immediately or notvoid ping()
void stop()
ReplicationStatusEnum startSync()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.