public class SubSocketBuilder extends SocketBuilder implements Subscribable
SocketBuilder.SocketSpeccontext, socketSpec| Constructor and Description |
|---|
SubSocketBuilder(ManagedContext context) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
bind(String url,
String... additionalUrls)
Bind to a url.
|
Socket |
connect(String url,
String... additionalUrls)
Connect to a url.
|
SubSocketBuilder |
subscribe(byte[] data)
Subscribe to the given channel.
|
SubSocketBuilder |
subscribeAll()
Subscribe to all messages.
|
asRoutable, asSubscribable, bind, bind, connect, connect, createBindableSocketWithStandardSettings, createConnectableSocketWithStandardSettings, getIdentity, getLinger, getReceiveHighWaterMark, getSendHighWaterMark, getSocketSpec, getSocketType, getSwap, newManagedSocket, withBackgroundable, withIdentity, withLinger, withLinger, withReceiveHighWatermark, withReceiveHighWatermark, withReceiveTimeout, withSendHighWatermark, withSendHighWatermark, withSendTimeout, withSwappublic SubSocketBuilder(ManagedContext context)
public SubSocketBuilder subscribe(byte[] data)
Subscribablesubscribe in interface Subscribabledata - The channel prefix, as bytespublic SubSocketBuilder subscribeAll()
SubscribablesubscribeAll in interface Subscribablepublic Socket connect(String url, String... additionalUrls)
Connectableconnect in interface Connectableconnect in class SocketBuilderurl - the url to connect toadditionalUrls - additional urls to connect topublic Socket bind(String url, String... additionalUrls)
Bindablebind in interface Bindablebind in class SocketBuilderurl - the url to bind toadditionalUrls - additional urls to bind toCopyright © 2019. All rights reserved.