public class LateralTCPSender extends Object
| Constructor and Description |
|---|
LateralTCPSender(ITCPLateralCacheAttributes lca)
Deprecated.
Specify serializer
|
LateralTCPSender(ITCPLateralCacheAttributes lca,
IElementSerializer serializer)
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.
|
@Deprecated public LateralTCPSender(ITCPLateralCacheAttributes lca) throws IOException
lca - IOExceptionpublic LateralTCPSender(ITCPLateralCacheAttributes lca, IElementSerializer serializer) throws IOException
lca - the configuration objectserializer - the serializer to use when sendingIOExceptionprotected 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–2022 The Apache Software Foundation. All rights reserved.