Interface SnapshotSender
- All Superinterfaces:
AutoCloseable
,Closeable
Sender-side object for controlling the transmission of a database snapshot to a new group
member. A
SnapshotSender
is paired with a SnapshotReceiver
on the remote
member which is joining the group.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionBegin writing the snapshot to the receiver.options()
Options requested by the receiver.Member address which is receiving the snapshot.
-
Method Details
-
receiverAddress
SocketAddress receiverAddress()Member address which is receiving the snapshot. -
options
-
begin
Begin writing the snapshot to the receiver.- Parameters:
length
- expected length of snapshot (in bytes) or -1 if unknownposition
- log reading begins at this position; expected to be the highest exclusive position applied by the snapshotoptions
- granted to the receiver; can pass null if none- Returns:
- a stream to write the snapshot into; close the stream or this sender when done
- Throws:
IOException
-