Package com.tuladb
Interface BufferedLedgerClient.Target
- All Superinterfaces:
AutoCloseable,Closeable
- Enclosing class:
BufferedLedgerClient
The batch surface this client drives. Adapters below wrap each client type.
-
Method Summary
Modifier and TypeMethodDescriptiondefault LedgerClientclient()The single connection behind this target, for the calls that are not batched (reads, registry, admin);nullwhen there is none (a pool, a smart client, a test double).commitBatch(List<String> ids, int depth) reserveBatch(List<Models.TransferCreate> items, int depth) rollbackBatch(List<String> ids, int depth) tieredCommitBatch(List<String> ids, int depth) tieredReserveBatch(List<Models.TieredTransferCreate> items, int depth) tieredRollbackBatch(List<String> ids, int depth) tieredTransferBatch(List<Models.TieredTransferCreate> items, int depth) transferBatch(List<Models.TransferCreate> items, int depth) default booleanThe id-size rule ids derived by key must use; the client's own.default booleanWhether items reach the engine through the SDK's own wire encoding.
-
Method Details
-
transferBatch
List<Models.TransferResult> transferBatch(List<Models.TransferCreate> items, int depth) throws IOException - Throws:
IOException
-
reserveBatch
List<Models.TransferResult> reserveBatch(List<Models.TransferCreate> items, int depth) throws IOException - Throws:
IOException
-
commitBatch
- Throws:
IOException
-
rollbackBatch
- Throws:
IOException
-
tieredTransferBatch
List<Models.TieredTransferResult> tieredTransferBatch(List<Models.TieredTransferCreate> items, int depth) throws IOException - Throws:
IOException
-
tieredReserveBatch
List<Models.TieredTransferResult> tieredReserveBatch(List<Models.TieredTransferCreate> items, int depth) throws IOException - Throws:
IOException
-
tieredCommitBatch
- Throws:
IOException
-
tieredRollbackBatch
List<Models.TieredTransferResult> tieredRollbackBatch(List<String> ids, int depth) throws IOException - Throws:
IOException
-
client
The single connection behind this target, for the calls that are not batched (reads, registry, admin);nullwhen there is none (a pool, a smart client, a test double). -
useIso20022RefSize
default boolean useIso20022RefSize()The id-size rule ids derived by key must use; the client's own. -
wireEncoded
default boolean wireEncoded()Whether items reach the engine through the SDK's own wire encoding. When they do, each item is encoded alone before it is queued, so a bad one fails only its caller; a test double or custom target that takes other items keeps whatever it accepts.
-