Skip to content

ConnectionSync write timeout setting #230

Closed
@zqhxuyuan

Description

@zqhxuyuan

current ConnectionSync.write() method use future, and get result blocked

public Message write(final Message message, final Collection<Chunk> chunks)  {
  return task.get();
}

we need timeout setting on task get for long running query/operation, such as:

public Message write(final Message message, final Collection<Chunk> chunks)  {
  return task.get(2 * 60, TimeUnit.SECONDS);
}

there're already a timeout setting on ConnectionSync.Builder, but that's for connection, not for write.

Do you guys want to support this feature, or can you give reason why not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions