Package io.milvus.client
Class Response
- java.lang.Object
-
- io.milvus.client.Response
-
public class Response extends java.lang.Object
Represents response of a client call. Contains astatus
and amessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Response.Status
Represents server and client side status code
-
Constructor Summary
Constructors Constructor Description Response(Response.Status status)
Response(Response.Status status, java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
Response.Status
getStatus()
boolean
ok()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Response
public Response(Response.Status status, java.lang.String message)
-
Response
public Response(Response.Status status)
-
-
Method Detail
-
getStatus
public Response.Status getStatus()
-
getMessage
public java.lang.String getMessage()
-
ok
public boolean ok()
- Returns:
true
if status equals SUCCESS
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-