Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Release v4.0.0

Latest

Choose a tag to compare

@shijieshengshijiesheng released this 14 Oct 21:10
· 3 commits to master since this release
474f5d1
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Highlights

Thrift Deprecation

Thrift support is now fully removed in Java client. (See why#985 ).

Migration Guide from V3

User facing APIs on workflow operations are mostly unchanged. But there are someBREAKING changes as list below.

Thrift to new Entities in API calls

For users to migrate easily, we generate a new set of entities with the same import path and similar interfaces.

  1. you can no longer access fields directly but instead have to usegetter andsetter explicitly.
  2. IWorkflowService will no longer throwTException but insteadCadenceError; all other exceptions thrown are kept the same extended fromCadenceError
  3. IWorkflowService usescom.uber.cadence.serviceclient.AsyncMethodCallback instead oforg.apache.thrift.async.AsyncMethodCallback in callback methods.

Data Converter

If your workflow's input or output contains Thrift entities that extended fromTBase,TEnum,TException. This is a BREAKING change. You'll need to add back the thrift adapters in your custom dataconverters. We no longer support them by default.

  1. We removed specialTBase andTEnum adapter (first introduced to reduce payload size#263).
  2. We removed the ability to convertTException but instead you'll get a fallback typecom.uber.cadence.client.ApplicationFailureException

Construct your client

  1. WorkflowServiceTChannel is now removed and replaced byWorkflowServiceGrpc
  2. If you use Grpc before, instead ofnew Thrift2ProtoAdapter(IGrpcServiceStubs.newInstance()) you can now useWorkflowServiceGrpc() directly.

What's Changed

New Contributors

Full Changelog:v3.12.7...v4.0.0

Contributors

  • @shijiesheng
  • @c-warren
  • @mandyschen
  • @evansandoval
shijiesheng, c-warren, and 2 other contributors
Assets2
Loading

[8]ページ先頭

©2009-2025 Movatter.jp