org.mortbay.loadbalancer

Class Connection

public class Connection extends Object

Constructor Summary
Connection(ByteBufferPool bufferPool, Listener listener, SocketChannel client, int capacity)
Method Summary
voidallocate(Server server, int allocationTry)
voidclient2server(SelectionKey key)
voidclientWriteWakeup(SelectionKey key)
voidclose()
voidconnected(SocketChannel channel, Selector selector)
voiddeallocate()
SocketChannelgetClientSocketChannel()
booleanisAllocated()
voidserver2client(SelectionKey key)
voidserverWriteWakeup(SelectionKey key)
StringtoString()

Constructor Detail

Connection

public Connection(ByteBufferPool bufferPool, Listener listener, SocketChannel client, int capacity)

Method Detail

allocate

public void allocate(Server server, int allocationTry)

client2server

public void client2server(SelectionKey key)

clientWriteWakeup

public void clientWriteWakeup(SelectionKey key)

close

public void close()

connected

public void connected(SocketChannel channel, Selector selector)

deallocate

public void deallocate()

getClientSocketChannel

public SocketChannel getClientSocketChannel()

isAllocated

public boolean isAllocated()

server2client

public void server2client(SelectionKey key)

serverWriteWakeup

public void serverWriteWakeup(SelectionKey key)

toString

public String toString()
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.