-
- All Implemented Interfaces:
-
software.amazon.awssdk.core.async.AsyncResponseTransformer
public final class BufferQueueAsyncHandler implements AsyncResponseTransformer<GetObjectResponse, GetObjectResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBufferQueueAsyncHandler.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ArrayBlockingQueue<ByteBuffer>queue
-
Constructor Summary
Constructors Constructor Description BufferQueueAsyncHandler()
-
Method Summary
Modifier and Type Method Description final ArrayBlockingQueue<ByteBuffer>getQueue()final SubscriptionwaitForSubscription(CompletableFuture<GetObjectResponse> forObject, Long maxMillis)UnitresponseReceived(GetObjectResponse response)UnitexceptionOccurred(Throwable t)UnitonStream(Publisher<ByteBuffer> publisher)GetObjectResponsecomplete()-
-
Method Detail
-
getQueue
final ArrayBlockingQueue<ByteBuffer> getQueue()
-
waitForSubscription
final Subscription waitForSubscription(CompletableFuture<GetObjectResponse> forObject, Long maxMillis)
-
responseReceived
Unit responseReceived(GetObjectResponse response)
-
exceptionOccurred
Unit exceptionOccurred(Throwable t)
-
onStream
Unit onStream(Publisher<ByteBuffer> publisher)
-
complete
GetObjectResponse complete()
-
-
-
-