private String remoteCall(String method, String... args) { try { connection.sendRPC(cacheModule, method, stringsToErlangStrings(args)); OtpErlangObject received = connection.receiveRPC(); return parse(received); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } }
public void close() { try { connection.close(); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } }