- java.lang.Object
-
- com.tigerbeetle.EchoClient
-
- All Implemented Interfaces:
AutoCloseable
public final class EchoClient extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description EchoClient(int clusterID, String replicaAddresses, int maxConcurrency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
AccountBatch
echo(AccountBatch batch)
TransferBatch
echo(TransferBatch batch)
CompletableFuture<AccountBatch>
echoAsync(AccountBatch batch)
CompletableFuture<TransferBatch>
echoAsync(TransferBatch batch)
-
-
-
Constructor Detail
-
EchoClient
public EchoClient(int clusterID, String replicaAddresses, int maxConcurrency)
-
-
Method Detail
-
echo
public AccountBatch echo(AccountBatch batch) throws RequestException
- Throws:
RequestException
-
echo
public TransferBatch echo(TransferBatch batch) throws RequestException
- Throws:
RequestException
-
echoAsync
public CompletableFuture<AccountBatch> echoAsync(AccountBatch batch)
-
echoAsync
public CompletableFuture<TransferBatch> echoAsync(TransferBatch batch)
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-