public class PSRpcResponse extends PSRpcObject
Modifier and Type | Class and Description |
---|---|
static class |
PSRpcResponse.Type |
PULL, PUSH
Constructor and Description |
---|
PSRpcResponse(ByteBuffer buffer) |
PSRpcResponse(PSRpcResponse.Type status) |
PSRpcResponse(PSRpcResponse.Type status,
Object data) |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(ByteBuffer buffer) |
String |
getErrorMessage() |
ListObject |
getResultModel() |
boolean |
isSuccessful() |
ByteBuffer |
serialize() |
public PSRpcResponse(ByteBuffer buffer) throws IOException
IOException
public PSRpcResponse(PSRpcResponse.Type status)
public PSRpcResponse(PSRpcResponse.Type status, Object data)
public boolean isSuccessful()
public String getErrorMessage()
public ListObject getResultModel()
public void deserialize(ByteBuffer buffer) throws IOException
deserialize
in class PSRpcObject
IOException
public ByteBuffer serialize() throws IOException
serialize
in class PSRpcObject
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.