| Package | Description |
|---|---|
| sila_java.library.server_base.binary_transfer.database | |
| sila_java.library.server_base.binary_transfer.database.impl |
| Modifier and Type | Method and Description |
|---|---|
Duration |
BinaryDatabase.addBinary(UUID binaryId,
InputStream stream)
Add a binary into the database
|
Duration |
BinaryDatabase.extendBinaryExpiration(UUID binaryId)
Extend the expiration date of a binary
|
Binary |
BinaryDatabase.getBinary(UUID binaryId)
Get a binary by its identifier
|
BinaryInfo |
BinaryDatabase.getBinaryInfo(UUID binaryId)
Get the information of a binary by its identifier
|
void |
BinaryDatabase.removeAllBinaries()
Remove all binaries from the database
|
void |
BinaryDatabase.removeBinary(UUID binaryId)
Remove a binary from the database
|
void |
BinaryDatabase.reserveBytes(long length)
Reserve the required resources to store a binary of the specified length
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
H2BinaryDatabase.addBinary(@NonNull UUID binaryId,
@NonNull InputStream stream)
Save a binary stream to the database
|
Duration |
H2BinaryDatabase.extendBinaryExpiration(@NonNull UUID binaryId)
Extend the binary expiration duration by
H2BinaryDatabase.BINARY_EXTEND_DURATION |
Binary |
H2BinaryDatabase.getBinary(@NonNull UUID binaryId)
Retrieve a binary from the database
|
BinaryInfo |
H2BinaryDatabase.getBinaryInfo(@NonNull UUID binaryId)
Retrieve a binary
binary info |
void |
H2BinaryDatabase.removeAllBinaries()
Remove the BINARIES table and hence all binaries from the database
|
void |
H2BinaryDatabase.removeBinary(@NonNull UUID binaryId)
Remove the specified binary from the database
|
void |
H2BinaryDatabase.reserveBytes(long length) |
Copyright © 2022 SiLA Java Developers. All rights reserved.