Package net.risesoft.api.consumer
Class ServerRegisterListener
- java.lang.Object
-
- net.risesoft.api.consumer.ServerRegisterListener
-
- All Implemented Interfaces:
ConnectionListener
@Listeners @ManagerListener(classes=net.risedata.register.rpc.RegisterAPI.class) public class ServerRegisterListener extends Object implements ConnectionListener
-
-
Constructor Summary
Constructors Constructor Description ServerRegisterListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchange(IServiceInstance instance, Integer status)voidonClose(HostAndPortConnection connection)voidonConnection(HostAndPortConnection connection)voidregister(IServiceInstanceModel instance, String environment, Integer level)voidremove(String serviceId, String instanceId, String environment, Integer level)
-
-
-
Method Detail
-
onConnection
public void onConnection(HostAndPortConnection connection)
- Specified by:
onConnectionin interfaceConnectionListener
-
onClose
public void onClose(HostAndPortConnection connection)
- Specified by:
onClosein interfaceConnectionListener
-
remove
@Listener("CLOUD_REGISTER_REMOVE_LISTENER") public void remove(String serviceId, String instanceId, String environment, Integer level)
-
register
@Listener("CLOUD_REGISTER_REGISTER_LISTENER") public void register(IServiceInstanceModel instance, String environment, Integer level)
-
change
@Listener("CLOUD_REGISTER_CHANGE_LISTENER") public void change(IServiceInstance instance, Integer status)
-
-