Interface NetworkTransport
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
RedisTransport
Binary publish/subscribe transport used for cross-server messages.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCloseable subscription to one logical channel. -
Method Summary
-
Method Details
-
publish
Publishes one binary message.- Parameters:
channel- logical channel namepayload- immutable message bytes for the duration of the call
-
subscribe
Subscribes to a logical channel.- Parameters:
channel- logical channel namelistener- message callback- Returns:
- subscription handle
-
close
void close()Closes all subscriptions and rejects new work.- Specified by:
closein interfaceAutoCloseable
-