public abstract class AbstractAsyncSubscription extends Object
| Constructor and Description |
|---|
AbstractAsyncSubscription(TcpChannelHub hub,
String csp,
byte identifier,
String name) |
AbstractAsyncSubscription(TcpChannelHub hub,
String csp,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
applySubscribe()
Implement this to establish a subscription with the server
|
void |
onClose()
called whenever the connection to the server has been dropped
|
void |
onConsumer(net.openhft.chronicle.wire.WireIn inWire)
Implement this to consume the subscription
|
abstract void |
onSubscribe(net.openhft.chronicle.wire.WireOut wireOut)
called when ever the TcpChannelHub is ready to make a subscription
|
long |
tid()
returns the unique tid that will be used in the subscription, this tid must be unique per
socket connection
|
String |
toString() |
public AbstractAsyncSubscription(@NotNull
TcpChannelHub hub,
String csp,
String name)
public AbstractAsyncSubscription(@NotNull
TcpChannelHub hub,
String csp,
byte identifier,
String name)
public long tid()
public void applySubscribe()
public abstract void onSubscribe(net.openhft.chronicle.wire.WireOut wireOut)
wireOut - the wire to write the subscription topublic void onClose()
public void onConsumer(@NotNull
net.openhft.chronicle.wire.WireIn inWire)
inWire - the wire to write the subscription toCopyright © 2018. All rights reserved.