public class LateralTCPSender extends Object
| Constructor and Description |
|---|
LateralTCPSender(ITCPLateralCacheAttributes lca)
Constructor for the LateralTCPSender object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Closes connection used by all LateralTCPSenders for this lateral connection.
|
protected void |
init(String host,
int port)
Creates a connection to a TCP server.
|
<K,V> void |
send(LateralElementDescriptor<K,V> led)
Sends commands to the lateral cache listener.
|
<K,V> Object |
sendAndReceive(LateralElementDescriptor<K,V> led)
Sends commands to the lateral cache listener and gets a response.
|
public LateralTCPSender(ITCPLateralCacheAttributes lca) throws IOException
lca - IOExceptionprotected void init(String host, int port) throws IOException
host - port - IOExceptionpublic <K,V> void send(LateralElementDescriptor<K,V> led) throws IOException
led - IOExceptionpublic <K,V> Object sendAndReceive(LateralElementDescriptor<K,V> led) throws IOException
led - IOExceptionpublic void dispose()
throws IOException
IOExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.