org.jboss.messaging.core.remoting.spi
Interface Connector

All Known Implementing Classes:
InVMConnector, NettyConnector

public interface Connector

A Connector

Author:
Tim Fox

Method Summary
 void close()
           
 Connection createConnection()
          Create and return a connection from this connector.
 boolean isStarted()
           
 void start()
           
 

Method Detail

start

void start()

close

void close()

isStarted

boolean isStarted()

createConnection

Connection createConnection()
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

Returns:
The connection, or null if unable to create a connection (e.g. network is unavailable)


Copyright © 2006 JBoss Inc. All Rights Reserved.