GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - crylearner/JavaRpcFramework: 一个具有良好分层的RPC框架,使用java语言实现

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
test/rpc
test/rpc
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

JavaRpcFramework

一个具有良好分层的RPC框架,使用java语言实现

服务端使用 只支持普通的接口实现方式,也支持服务自动发现,基于annotation

e.g. giving a class below public class Hello { String mName = "no one"; public Hello() {

}

@Rpc
public String sayName() {
	return mName;
}

@Rpc(params={"a","b"})
public int add(int a, int b) {
	return a +b;
}

@Rpc(params={"name"})
public void giveName(String name) {
	mName = name;
}

}

//register and start server. where, RpcServiceAdapter.adapt(object) will do auto service discovery RpcServer server = new RpcServer(); Hello hello = new Hello(); server.registerService(RpcServiceAdapter.adapt(hello)); server.serve(null, 12345);

About

一个具有良好分层的RPC框架,使用java语言实现

Topics

clientjavajsonrpc-frameworkserver

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.