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 - 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(String cache) throws IOException
cache - IOExceptionpublic 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.