org.codehaus.gpars

groovyx.gpars.remote.netty
[Java] Class NettyRemoteConnection

java.lang.Object
  groovyx.gpars.remote.RemoteConnection
      groovyx.gpars.remote.netty.NettyRemoteConnection

public class NettyRemoteConnection
extends RemoteConnection

Connection using Netty

Authors:
Alex Tkachman


Nested Class Summary
private static class NettyRemoteConnection.MyChannelFutureListener

 
Field Summary
private NettyHandler handler

private NettyRemoteConnection.MyChannelFutureListener writeListener

 
Fields inherited from class RemoteConnection
host, localHost
 
Constructor Summary
NettyRemoteConnection(NettyTransportProvider provider, NettyHandler netHandler)

 
Method Summary
void disconnect()

void write(SerialMsg msg)

 
Methods inherited from class RemoteConnection
disconnect, getHost, onConnect, onDisconnect, onException, onMessage, setHost, write
 

Field Detail

handler

private final NettyHandler handler


writeListener

private final NettyRemoteConnection.MyChannelFutureListener writeListener


 
Constructor Detail

NettyRemoteConnection

public NettyRemoteConnection(NettyTransportProvider provider, NettyHandler netHandler)


 
Method Detail

disconnect

@java.lang.Overridepublic void operationComplete(final ChannelFuture future) throws Exception {
public void disconnect()


write

@java.lang.Override}
public void write(SerialMsg msg)


 

Copyright © 2008–2013 Václav Pech. All Rights Reserved.