public interface ResultSerializer
Modifier and Type | Method and Description |
---|---|
Object |
serialize(Result result)
Serialize the given result to a format expected by client.
|
Object |
serializeError(ResultStatus error)
Serialize an error result to the format expected by the client.
|
Object serialize(Result result)
result
- internal resultObject serializeError(ResultStatus error)
error
- the error resultCopyright © 2022 Apache Software Foundation. All rights reserved.