Extremely fast enterprise server framework, can be used in RPC, game server, web server.
Extremely fast enterprise server framework, can be used in RPC, game server, web server.
English | 简体中文
Perfect work development process, complete online solution
<dependency>
<groupId>com.zfoo</groupId>
<artifactId>boot</artifactId>
<version>4.1.4</version>
</dependency><dependency>
<groupId>com.zfoo</groupId>
<artifactId>protocol</artifactId>
<version>4.1.4</version>
</dependency>// protocol registration
ProtocolManager.initProtocol(Set.of(ComplexObject.class, ObjectA.class, ObjectB.class));
// serialization
ProtocolManager.write(byteBuf, complexObject);
// deserialization
var packet = ProtocolManager.read(byteBuf);…// Pass in the class file that needs to be updated
HotSwapUtils.hotswapClass(bytes);// You don't need to write sql and any configuration yourself, define a table in the database directly through annotation definitions
@EntityCache
public class UserEntity implements IEntity<Long> {
@Id
private long id;
private String name;
}
// update database data
entityCaches.update(userEntity);// To receive an event, you only need to add an annotation to the method and the method will be automatically listen for the event
@EventReceiver
public void onMyNoticeEvent(MyNoticeEvent event) {
// do something
}
// fire an event
EventBus.post(MyNoticeEvent.valueOf("My event"));@Scheduler(cron = "0/1 * * * * ?")
public void cronSchedulerPerSecond() {
// do something
}@Storage
public class StudentResource {
@Id
private int id;
@Index
private String name;
private int age;
}zfoo use Apache License Version 2.0
No open issues yet, or sync has not completed.