OpenTelemetry.PersistentStorage.Abstractions.PersistentBlobProvider
Represents persistent blob provider.
namespace OpenTelemetry.PersistentStorage.Abstractions
{
internal abstract class PersistentBlobProvider
{
public bool TryCreateBlob(byte[] buffer, int leasePeriodMilliseconds, out PersistentBlob blob);
public bool TryCreateBlob(ReadOnlySpan<byte> buffer, int leasePeriodMilliseconds, out PersistentBlob blob);
public bool TryCreateBlob(byte[] buffer, out PersistentBlob blob);
public bool TryCreateBlob(ReadOnlySpan<byte> buffer, out PersistentBlob blob);
public bool TryGetBlob(out PersistentBlob blob);
public IEnumerable<PersistentBlob> GetBlobs();
protected abstract IEnumerable<PersistentBlob> OnGetBlobs();
protected abstract bool OnTryCreateBlob(byte[] buffer, int leasePeriodMilliseconds, out PersistentBlob blob);
protected abstract bool OnTryCreateBlob(byte[] buffer, out PersistentBlob blob);
protected virtual bool OnTryCreateBlob(ReadOnlySpan<byte> buffer, int leasePeriodMilliseconds, out PersistentBlob blob);
protected virtual bool OnTryCreateBlob(ReadOnlySpan<byte> buffer, out PersistentBlob blob);
protected abstract bool OnTryGetBlob(out PersistentBlob blob);
protected PersistentBlobProvider();
}
}