Package jrpc.service.socket
Interface ISocket
-
- All Known Implementing Classes:
CLightningSocket,UnixDomainSocketRpc
public interface ISocket
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclose()java.lang.ObjectdoCall(IWrapperSocketCall wrapperSocket, java.lang.reflect.Type typeResult)Deprecated.java.lang.StringdoRawCall(IWrapperSocketCall wrapperSocket)Make a raw call to the socket without JSON parsingintgetReceiveBufferSize()booleanisOpen()<T> TmakeCall(IWrapperSocketCall wrapperSocketCall)<T> TmakeCall(IWrapperSocketCall wrapperSocketCall, java.lang.Class<T> typeResult)
-
-
-
Method Detail
-
doCall
@Deprecated java.lang.Object doCall(IWrapperSocketCall wrapperSocket, java.lang.reflect.Type typeResult) throws ServiceException, java.io.IOException
Deprecated.Make a raw call to the socket without JSON parsing- Parameters:
wrapperSocket- : The Payload to encoding and send throw the socket.typeResult- : The type result where the JSON payload will be encoded- Returns:
- Object of the required type build with the JSON string content.
- Throws:
java.net.SocketException- Throws if any error with the socket will happen.ServiceExceptionjava.io.IOException
-
makeCall
<T> T makeCall(IWrapperSocketCall wrapperSocketCall, java.lang.Class<T> typeResult) throws ServiceException
- Throws:
ServiceException
-
makeCall
<T> T makeCall(IWrapperSocketCall wrapperSocketCall) throws ServiceException
- Throws:
ServiceException
-
doRawCall
java.lang.String doRawCall(IWrapperSocketCall wrapperSocket) throws java.net.SocketException, java.io.IOException
Make a raw call to the socket without JSON parsing- Parameters:
wrapperSocket- : The Payload to encoding and send throw the socket.- Returns:
- A raw JSON string
- Throws:
java.net.SocketException- Throws if any error with the socket will happen.java.io.IOException
-
close
void close() throws ServiceException- Throws:
ServiceException
-
isOpen
boolean isOpen()
-
getReceiveBufferSize
int getReceiveBufferSize() throws java.net.SocketException- Throws:
java.net.SocketException
-
-