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
IOExceptionpublic 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 PSRpcObjectIOExceptionpublic ByteBuffer serialize() throws IOException
serialize in class PSRpcObjectIOExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.