Class DefaultStorageCallbacks
- java.lang.Object
-
- com.amazonaws.kinesisvideo.storage.DefaultStorageCallbacks
-
- All Implemented Interfaces:
StorageCallbacks
public class DefaultStorageCallbacks extends Object implements StorageCallbacks
No-op implementation of storage callbacks. Extending this class allows convenient implementation of certain callbacks while leaving the rest as no-op.For example:
StorageCallbacks storageCallbacks = new DefaultStorageCallbacks() { @Override public void storageOverflowPressure(final long remainingSizeBytes) { super.storageOverflowPressure(remainingSize); final long remainingSizeInMB = remainingSizeBytes / 1024L / 1024L; log.warn("The buffer is approaching capacity: {} MB remaining", remainingSizeInMB); } };
-
-
Constructor Summary
Constructors Constructor Description DefaultStorageCallbacks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstorageOverflowPressure(long remainingSizeBytes)Reports storage overflow pressure.
-
-
-
Method Detail
-
storageOverflowPressure
public void storageOverflowPressure(long remainingSizeBytes)
Description copied from interface:StorageCallbacksReports storage overflow pressure. TheputFramewill trigger this if the client's configuredStorageInfo.getStorageSize()is 95% full or higher, and if theStreamInfo.getStreamingType()is notStreamInfo.StreamingType.STREAMING_TYPE_OFFLINE.- Specified by:
storageOverflowPressurein interfaceStorageCallbacks
-
-