Interface Topic.Publisher<U>
- Type Parameters:
U-
- All Superinterfaces:
AutoCloseable,Consumer<U>
The Publisher type which is returned by
Topic.getPublisher(). This will keep a connection
open to the underlying topic service and publish messages consumed by the Consumer.accept(Object)
mnethod until it is closed using close().-
Method Summary
-
Method Details
-
close
default void close()For the sake of convenience, this omits theExceptionspecification.- Specified by:
closein interfaceAutoCloseable
-