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
- IOException
protected void init(String host, int port) throws IOException
host
- port
- IOException
public <K,V> void send(LateralElementDescriptor<K,V> led) throws IOException
led
- IOException
public <K,V> Object sendAndReceive(LateralElementDescriptor<K,V> led) throws IOException
led
- IOException
public void dispose() throws IOException
IOException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.