Exemple #1
0
 public async Task BroadcastFailure(
     string serverUrl,
     string partitionId,
     Broadcast.MessageId messageId,
     string failedServerId)
 {
     try {
         AdvancedReplicaCommunicationConnection connection = new AdvancedReplicaCommunicationConnection(serverUrl);
         await connection.BroadcastFailure(partitionId, messageId, failedServerId, DEFAULT_TIMEOUT);
     }
     catch (RpcException exception) {
         HandleRpcException(serverUrl, exception);
     }
 }
Exemple #2
0
 public async Task BroadcastWrite(
     string serverUrl,
     string partitionId,
     MessageId messageId,
     string key,
     string value,
     ImmutableVectorClock replicaTimestamp,
     string writeServerId)
 {
     try {
         AdvancedReplicaCommunicationConnection connection = new AdvancedReplicaCommunicationConnection(serverUrl);
         await connection.BroadcastWrite(partitionId, messageId, key, value, replicaTimestamp, writeServerId, DEFAULT_TIMEOUT);
     }
     catch (RpcException exception) {
         HandleRpcException(serverUrl, exception);
     }
 }