public class ReplicationParams extends Object
Constructor and Description |
---|
ReplicationParams()
Initialise all parameters to defaults.
|
Modifier and Type | Method and Description |
---|---|
long |
channelTagId()
Gets channel tag id for the archive subscription.
|
ReplicationParams |
channelTagId(long channelTagId)
The channel used by the archive's subscription for replication will have the supplied channel tag applied to it.
|
long |
dstRecordingId()
Destination recording id to extend.
|
ReplicationParams |
dstRecordingId(long dstRecordingId)
The recording in the local archive to extend.
|
byte[] |
encodedCredentials()
Gets the encoded credentials that will be used to authenticate against the source archive.
|
ReplicationParams |
encodedCredentials(byte[] encodedCredentials)
Sets the encoded credentials that will be passed to the source archive for authentication.
|
boolean |
equals(Object o) |
int |
fileIoMaxLength()
Gets the maximum length for file IO operations in the replay.
|
ReplicationParams |
fileIoMaxLength(int fileIoMaxLength)
The maximum size of a file operation when reading from the archive to execute the replication.
|
int |
hashCode() |
String |
liveDestination()
Gets the destination for the live stream merge.
|
ReplicationParams |
liveDestination(String liveChannel)
Destination for the live stream if merge is required.
|
String |
replicationChannel()
Channel to use for replicating the recording, empty string will mean that the default channel is used.
|
ReplicationParams |
replicationChannel(String replicationChannel)
Channel use to replicate the recording.
|
int |
replicationSessionId()
The session-id to be used for the replicated recording.
|
ReplicationParams |
replicationSessionId(int replicationSessionId)
Sets the session-id to be used for the replicated file instead of the session id from the source archive.
|
ReplicationParams |
reset()
Reset the state of the parameters to the default for reuse.
|
long |
stopPosition()
The stop position for this replication request.
|
ReplicationParams |
stopPosition(long stopPosition)
Set the stop position for replication, default is
AeronArchive.NULL_POSITION , which will continuously
replicate. |
long |
subscriptionTagId()
Gets subscription tag id for the archive subscription.
|
ReplicationParams |
subscriptionTagId(long subscriptionTagId)
The channel used by the archive's subscription for replication will have the supplied subscription tag applied to
it.
|
String |
toString() |
public ReplicationParams()
public ReplicationParams reset()
public ReplicationParams stopPosition(long stopPosition)
AeronArchive.NULL_POSITION
, which will continuously
replicate.stopPosition
- position to stop the replication at.public long stopPosition()
public ReplicationParams dstRecordingId(long dstRecordingId)
Aeron.NULL_VALUE
which will trigger the creation
of a new recording in the destination archive.dstRecordingId
- destination recording to extend.public long dstRecordingId()
public ReplicationParams liveDestination(String liveChannel)
liveChannel
- for the live stream mergepublic String liveDestination()
public String replicationChannel()
public ReplicationParams replicationChannel(String replicationChannel)
replicationChannel
- to use for replicating the recording.public ReplicationParams channelTagId(long channelTagId)
Aeron.NULL_VALUE
channelTagId
- tag to apply to the archive's subscription.public long channelTagId()
public ReplicationParams subscriptionTagId(long subscriptionTagId)
Aeron.NULL_VALUE
subscriptionTagId
- tag to apply to the archive's subscription.public long subscriptionTagId()
public ReplicationParams fileIoMaxLength(int fileIoMaxLength)
fileIoMaxLength
- maximum length of a file I/O operation.public int fileIoMaxLength()
Aeron.NULL_VALUE
if not
set, which will trigger the use of the Archive.Context default.public ReplicationParams replicationSessionId(int replicationSessionId)
replicationSessionId
- the session-id to be set for the received recording.public int replicationSessionId()
public ReplicationParams encodedCredentials(byte[] encodedCredentials)
encodedCredentials
- credentials to be passed to the source archive.public byte[] encodedCredentials()
Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.