Package com.sleepycat.db
Class ReplicationChannel
java.lang.Object
com.sleepycat.db.ReplicationChannel
A ReplicationChannel handle is used to manage a channel in a replication group.
ReplicationChannel handles are opened using the
Environment.openChannel method.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the channel.voidsendMessage(Set messages) Send a message on the message channel asynchronously.voidsendRequest(Set messages, DatabaseEntry response, long timeout) Send request on the message channel.voidsetTimeout(long timeout) Sets the default timeout value for the channel.
-
Method Details
-
close
Close the channel.- Throws:
DatabaseException
-
sendMessage
Send a message on the message channel asynchronously.- Parameters:
messages-- Throws:
DatabaseException
-
sendRequest
public void sendRequest(Set messages, DatabaseEntry response, long timeout) throws DatabaseException Send request on the message channel. It blocks waiting for a response before returning.- Parameters:
messages-response-timeout-- Throws:
DatabaseException
-
setTimeout
Sets the default timeout value for the channel.- Parameters:
timeout-- Throws:
DatabaseException
-