Skip to content

Client通过 "Cglib动态代理" 的方式实现动态绑定管道 #39

Closed
@hengboy

Description

@hengboy
No description provided.

Activity

self-assigned this
on Aug 25, 2020
hengboy

hengboy commented on Aug 25, 2020

@hengboy
MemberAuthor

MessageProcessor 静态绑定管道

添加Client的项目在启动时会将项目中已经实现MessageProcessor接口的实现类实例绑定的管道(Message Pipe)进行注册到Server,正因为这种方式有局限性,是在编码层面固定的绑定方式。

而在Server端可以根据传递的Message Pipe Name来动态的创建消息管道实例,虽然支持,但是Client并不支持动态绑定管道消费消息的实现方式。

MessageProcessor 动态绑定管道

  • 通过Cglib动态代理的方式来代理MessageProcessor接口实现类
  • Client在发送心跳检查时,需要将目前自身绑定消费的管道名称(Message Pipe Name)上报到Server
changed the title [-]Client通过 "JDK动态代理" 的方式实现动态绑定管道[/-] [+]Client通过 "CgLib动态代理" 的方式实现动态绑定管道[/+] on Aug 25, 2020
changed the title [-]Client通过 "CgLib动态代理" 的方式实现动态绑定管道[/-] [+]Client通过 "Cglib动态代理" 的方式实现动态绑定管道[/+] on Aug 25, 2020
hengboy

hengboy commented on Aug 25, 2020

@hengboy
MemberAuthor

作废

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @hengboy

      Issue actions

        Client通过 "Cglib动态代理" 的方式实现动态绑定管道 · Issue #39 · minbox-projects/message-pipe