T
- The type of the Document that this handler handlesS
- The type of Edit
s that this handler handlespublic class DiffSyncClientHandler<T,S extends Edit<? extends Diff>>
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.websocketx.WebSocketFrame>
WebSocketFrame
s.
This handle takes care of the client side message processing for AeroGear Sync Server.
Constructor and Description |
---|
DiffSyncClientHandler(ClientSyncEngine<T,S> syncEngine) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
protected void |
messageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame) |
acceptInboundMessage, channelRead
bind, channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered, write
public DiffSyncClientHandler(ClientSyncEngine<T,S> syncEngine)
protected void messageReceived(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.websocketx.WebSocketFrame frame) throws Exception
messageReceived
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.websocketx.WebSocketFrame>
Exception
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.