Skip to content

Return a Publisher<ByteBuffer> from streaming operations #391

Closed
@jhovell

Description

@jhovell

Expected Behavior

I would expect to not have to specify a Path as required in the method signature if I want to buffer contents to a stream

While this is fine:
CompletableFuture<GetObjectResponse> s3AsyncClient.getObject(GetObjectRequest, Path)

Proposed solution

I would also expect this:
CompletableFuture<GetObjectResponse> s3AsyncClient.getObject(GetObjectRequest)

I'm not sure where this fits in on a current roadmap if one exists, whether it was overlooked or is just not done yet. I would expect CompletableFuture to be a first class citizen, but maybe I have just misunderstood how it is meant to be used.

Your Environment

  • AWS Java SDK version used: 2.0.0-preview-7
  • JDK version used: Oracle Java(TM) SE Runtime Environment (build 9+181)
    Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
  • Operating System and version: OSX

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.kotlinp1This is a high priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions