public static class RemoteCallReturn.Builder extends Object
RemoteCallReturn objects.| Constructor and Description |
|---|
Builder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RemoteCallReturn |
build()
Returns the RemoteCallReturn this Builder has been constructing.
|
RemoteCallReturn.Builder |
withException(Throwable exception)
Adds an exception to the RemoteCallReturn under construction.
|
RemoteCallReturn.Builder |
withRequestInfo(RequestInfo requestInfo)
Adds a request info to the RemoteCallReturn under construction.
|
RemoteCallReturn.Builder |
withResponseInfo(ResponseInfo responseInfo)
Adds a response info to the RemoteCallReturn under construction.
|
RemoteCallReturn.Builder |
withReturnValue(Object returnValue)
Adds a return value to the RemoteCallReturn under construction.
|
public RemoteCallReturn.Builder withReturnValue(Object returnValue)
returnValue - the return value to add to the RemoteCallReturnpublic RemoteCallReturn.Builder withResponseInfo(ResponseInfo responseInfo)
responseInfo - the response info to add to the RemoteCallReturnpublic RemoteCallReturn.Builder withRequestInfo(RequestInfo requestInfo)
requestInfo - the request info to add to the RemoteCallReturnpublic RemoteCallReturn.Builder withException(Throwable exception)
exception - the exception to add to the RemoteCallReturnpublic RemoteCallReturn build()
Copyright © 2019. All rights reserved.