Package com.amazonaws.event
Interface DeliveryMode
- All Known Implementing Classes:
LegacyS3ProgressListener,ProgressListener.ExceptionReporter,ProgressListener.NoOpProgressListener,ProgressListenerChain,ProgressListenerWithEventCodeVerification,ProgressTracker,SyncProgressListener
public interface DeliveryMode
Used to indicate whether it is safe to deliver progress events to the
listener synchronously. In general, a progress listener should never block,
which is a necessary condition for the safety for synchronous delivery.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classProvides convenient method to check if a listener is safe to be invoked synchronously. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if it is safe to make a synchronous callback to the implementing listener without the risk of incurring undue latency; false otherwise.
-
Method Details
-
isSyncCallSafe
boolean isSyncCallSafe()Returns true if it is safe to make a synchronous callback to the implementing listener without the risk of incurring undue latency; false otherwise.
-