org.jboss.messaging.integration.transports.netty
Class NettyConnector

java.lang.Object
  extended by org.jboss.messaging.integration.transports.netty.NettyConnector
All Implemented Interfaces:
Connector

public class NettyConnector
extends java.lang.Object
implements Connector

A NettyConnector

Author:
Tim Fox, Trustin Lee

Constructor Summary
NettyConnector(java.util.Map<java.lang.String,java.lang.Object> configuration, BufferHandler handler, ConnectionLifeCycleListener listener, java.util.concurrent.Executor threadPool, java.util.concurrent.ScheduledExecutorService scheduledThreadPool)
           
 
Method Summary
 void close()
           
 Connection createConnection()
          Create and return a connection from this connector.
 boolean isStarted()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NettyConnector

public NettyConnector(java.util.Map<java.lang.String,java.lang.Object> configuration,
                      BufferHandler handler,
                      ConnectionLifeCycleListener listener,
                      java.util.concurrent.Executor threadPool,
                      java.util.concurrent.ScheduledExecutorService scheduledThreadPool)
Method Detail

start

public void start()
Specified by:
start in interface Connector

close

public void close()
Specified by:
close in interface Connector

isStarted

public boolean isStarted()
Specified by:
isStarted in interface Connector

createConnection

public Connection createConnection()
Description copied from interface: Connector
Create and return a connection from this connector. This method must NOT throw an exception if it fails to create the connection (e.g. network is not available), in this case it MUST return null

Specified by:
createConnection in interface Connector
Returns:
The connection, or null if unable to create a connection (e.g. network is unavailable)


Copyright © 2006 JBoss Inc. All Rights Reserved.