grpcstarter.server.GrpcServerStartedEvent Maven / Gradle / Ivy
package grpcstarter.server;
import io.grpc.Server;
import org.springframework.context.ApplicationEvent;
/**
* Grpc server started event.
*
* Can use to get the random server port.
*
* @author Freeman
*/
public class GrpcServerStartedEvent extends ApplicationEvent {
public GrpcServerStartedEvent(Server source) {
super(source);
}
@Override
public Server getSource() {
return ((Server) super.getSource());
}
}