public class NioJetlangSendFiber extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NioJetlangSendFiber.ChannelState |
Constructor and Description |
---|
NioJetlangSendFiber(org.jetlang.fibers.Fiber sendFiber,
org.jetlang.fibers.NioFiber receiveFiber,
ObjectByteWriter objectByteWriter,
Charset charset,
org.jetlang.fibers.NioFiberImpl.OnBuffer ob) |
Modifier and Type | Method and Description |
---|---|
void |
handleClose(NioJetlangSendFiber.ChannelState sc) |
void |
handleLogout(NioJetlangSendFiber.ChannelState channel) |
void |
onNewSession(NioJetlangSendFiber.ChannelState channel) |
void |
onSubscriptionRequest(String topic,
NioJetlangSendFiber.ChannelState sc) |
void |
onUnsubscribeRequest(String topic,
NioJetlangSendFiber.ChannelState sc) |
<T> void |
publish(NioJetlangSendFiber.ChannelState sc,
String topic,
T msg) |
void |
publishBytes(NioJetlangSendFiber.ChannelState channel,
byte[] data) |
void |
publishIfSubscribed(NioJetlangSendFiber.ChannelState sc,
String topic,
byte[] data) |
void |
publishToAllSubscribedClients(String topic,
Object obj) |
void |
reply(NioJetlangSendFiber.ChannelState sc,
int reqId,
String replyTopic,
Object replyMsg) |
void |
sendIntAsByte(NioJetlangSendFiber.ChannelState channel,
int heartbeat) |
public NioJetlangSendFiber(org.jetlang.fibers.Fiber sendFiber, org.jetlang.fibers.NioFiber receiveFiber, ObjectByteWriter objectByteWriter, Charset charset, org.jetlang.fibers.NioFiberImpl.OnBuffer ob)
public void onNewSession(NioJetlangSendFiber.ChannelState channel)
public void sendIntAsByte(NioJetlangSendFiber.ChannelState channel, int heartbeat)
public void onSubscriptionRequest(String topic, NioJetlangSendFiber.ChannelState sc)
public void onUnsubscribeRequest(String topic, NioJetlangSendFiber.ChannelState sc)
public <T> void publish(NioJetlangSendFiber.ChannelState sc, String topic, T msg)
public void reply(NioJetlangSendFiber.ChannelState sc, int reqId, String replyTopic, Object replyMsg)
public void publishIfSubscribed(NioJetlangSendFiber.ChannelState sc, String topic, byte[] data)
public void publishBytes(NioJetlangSendFiber.ChannelState channel, byte[] data)
public void handleLogout(NioJetlangSendFiber.ChannelState channel)
public void handleClose(NioJetlangSendFiber.ChannelState sc)
Copyright © 2016. All Rights Reserved.