Class SimpleClient
- java.lang.Object
-
- de.unistuttgart.isw.sfsc.commonjava.patterns.simplereqrep.SimpleClient
-
- All Implemented Interfaces:
NotThrowingAutoCloseable,AutoCloseable
public final class SimpleClient extends Object implements NotThrowingAutoCloseable
-
-
Constructor Summary
Constructors Constructor Description SimpleClient(PubSubConnection pubSubConnection, com.google.protobuf.ByteString replyTopic, Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidsend(com.google.protobuf.ByteString targetTopic, com.google.protobuf.ByteString payload, Consumer<com.google.protobuf.ByteString> consumer, int timeoutMs, Runnable timeoutRunnable)
-
-
-
Constructor Detail
-
SimpleClient
public SimpleClient(PubSubConnection pubSubConnection, com.google.protobuf.ByteString replyTopic, Executor executor)
-
-
Method Detail
-
send
public void send(com.google.protobuf.ByteString targetTopic, com.google.protobuf.ByteString payload, Consumer<com.google.protobuf.ByteString> consumer, int timeoutMs, Runnable timeoutRunnable)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceNotThrowingAutoCloseable
-
-