public class RELPClient extends Object
| Constructor and Description |
|---|
RELPClient(String host,
int port)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
RELPClient |
close()
Close this client.
|
void |
flush() |
RELPClient |
open()
Open the client, this triggers the relp open acknowledgment
|
int |
send(long txnr,
byte[] data)
Send a byte array payload
|
int |
send(long txnr,
String data)
Send a string payload
|
RELPClient |
setCallback(IRELPClientCallback cb) |
public RELPClient(String host, int port)
host - the server hostport - the server portpublic RELPClient setCallback(IRELPClientCallback cb)
cb - the user callbackpublic RELPClient open() throws UnknownHostException, IOException
UnknownHostException - in case of pbIOException - in case of pbpublic RELPClient close()
public int send(long txnr,
String data)
txnr - the relp transaction numberdata - the data as a stringpublic int send(long txnr,
byte[] data)
txnr - the relp transaction numberdata - the datapublic void flush()
Copyright © 2023. All rights reserved.