org.msgpack.rpc
Class SessionPool

java.lang.Object
  extended by org.msgpack.rpc.SessionPool
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
Server

public class SessionPool
extends java.lang.Object
implements java.io.Closeable


Constructor Summary
SessionPool()
           
SessionPool(ClientConfig config)
           
SessionPool(ClientConfig config, EventLoop loop)
           
SessionPool(EventLoop loop)
           
 
Method Summary
 void close()
           
 EventLoop getEventLoop()
           
 Session getSession(java.net.InetSocketAddress address)
           
 Session getSession(java.lang.String host, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionPool

public SessionPool()

SessionPool

public SessionPool(ClientConfig config)

SessionPool

public SessionPool(EventLoop loop)

SessionPool

public SessionPool(ClientConfig config,
                   EventLoop loop)
Method Detail

getEventLoop

public EventLoop getEventLoop()

getSession

public Session getSession(java.lang.String host,
                          int port)
                   throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getSession

public Session getSession(java.net.InetSocketAddress address)

close

public void close()
Specified by:
close in interface java.io.Closeable


Copyright © 2010. All Rights Reserved.