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