net.sf.beep4j.transport.mina
Class MinaInitiator

java.lang.Object
  extended by net.sf.beep4j.transport.mina.AbstractMinaPeer
      extended by net.sf.beep4j.transport.mina.MinaInitiator
All Implemented Interfaces:
Initiator, Peer

public class MinaInitiator
extends AbstractMinaPeer
implements Initiator


Field Summary
 
Fields inherited from class net.sf.beep4j.transport.mina.AbstractMinaPeer
filterChainBuilder
 
Constructor Summary
MinaInitiator(org.apache.mina.common.IoConnector connector)
           
 
Method Summary
 void connect(java.net.SocketAddress address, SessionHandler handler)
          Tries to establish a session to the peer specified by the given address.
 
Methods inherited from class net.sf.beep4j.transport.mina.AbstractMinaPeer
setChannelFilterChainBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.beep4j.Peer
setChannelFilterChainBuilder
 

Constructor Detail

MinaInitiator

public MinaInitiator(org.apache.mina.common.IoConnector connector)
Method Detail

connect

public void connect(java.net.SocketAddress address,
                    SessionHandler handler)
Description copied from interface: Initiator
Tries to establish a session to the peer specified by the given address. The SessionHandler receives call backs as certain events in the session life cycle are reached.

Specified by:
connect in interface Initiator
Parameters:
address - the address of the peer
handler - the handler callback


Copyright © 2007 null. All Rights Reserved.