public class LateralTCPSender extends Object
Constructor and Description |
---|
LateralTCPSender(ITCPLateralCacheAttributes lca)
Constructor for the LateralTCPSender object.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose(String cache)
Closes connection used by all LateralTCPSenders for this lateral connection.
|
String |
getRemoteHost() |
ITCPLateralCacheAttributes |
getTcpLateralCacheAttributes() |
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.
|
void |
setRemoteHost(String remoteHost) |
void |
setTcpLateralCacheAttributes(ITCPLateralCacheAttributes tcpLateralCacheAttributes) |
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(String cache) throws IOException
cache
- IOException
public void setTcpLateralCacheAttributes(ITCPLateralCacheAttributes tcpLateralCacheAttributes)
tcpLateralCacheAttributes
- The tcpLateralCacheAttributes to set.public ITCPLateralCacheAttributes getTcpLateralCacheAttributes()
public void setRemoteHost(String remoteHost)
remoteHost
- The remoteHost to set.public String getRemoteHost()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.