Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceCoordinatorInterceptor代码疑问 #43

Closed
huangcheng1977 opened this issue Nov 15, 2016 · 1 comment
Closed

ResourceCoordinatorInterceptor代码疑问 #43

huangcheng1977 opened this issue Nov 15, 2016 · 1 comment

Comments

@huangcheng1977
Copy link

如标题中的类,以下代码是什么意思,consumer和provider是什么
MethodType methodType = CompensableMethodUtils.calculateMethodType(transactionContext, compensable != null ? true : false);

        switch (methodType) {
            case ROOT:
                generateAndEnlistRootParticipant(pjp);
                break;
            case CONSUMER:
                generateAndEnlistConsumerParticipant(pjp);
                break;
            case PROVIDER:
                generateAndEnlistProviderParticipant(pjp);
                break;
        }
@AllenRay
Copy link

consumer 就是rpc的消费端,provider就是rpc的服务提供端。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants