All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ray.serve.replica.RayServeReplica Maven / Gradle / Ivy

The newest version!
package io.ray.serve.replica;

public interface RayServeReplica {

  Object handleRequest(Object requestMetadata, Object requestArgs);

  default Object reconfigure(byte[] deploymentConfigBytes) {
    return null;
  }

  default boolean checkHealth() {
    return true;
  }

  default boolean prepareForShutdown() {
    return true;
  }

  default int getNumOngoingRequests() {
    return 0;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy