groovyx.gpars.remote.netty
Class NettyRemoteConnection

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

public class NettyRemoteConnection
extends RemoteConnection

Connection using Netty

Author:
Alex Tkachman

Nested Class Summary
private static class NettyRemoteConnection.MyChannelFutureListener
           
 
Field Summary
private  NettyHandler handler
           
private  NettyRemoteConnection.MyChannelFutureListener writeListener
           
 
Constructor Summary
NettyRemoteConnection(NettyTransportProvider provider, NettyHandler netHandler)
           
 
Method Summary
 void disconnect()
           
 void write(SerialMsg msg)
           
 
Methods inherited from class groovyx.gpars.remote.RemoteConnection
getHost, onConnect, onDisconnect, onException, onMessage, setHost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

private final NettyHandler handler

writeListener

private final NettyRemoteConnection.MyChannelFutureListener writeListener
Constructor Detail

NettyRemoteConnection

public NettyRemoteConnection(NettyTransportProvider provider,
                             NettyHandler netHandler)
Method Detail

write

public void write(SerialMsg msg)
Specified by:
write in class RemoteConnection

disconnect

public void disconnect()
Specified by:
disconnect in class RemoteConnection

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