Source Code Cross Referenced for TCConnectionManager.java in  » Net » Terracotta » com » tc » net » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » Terracotta » com.tc.net.core 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice.  All rights reserved.
03:         */
04:        package com.tc.net.core;
05:
06:        import com.tc.net.TCSocketAddress;
07:        import com.tc.net.protocol.ProtocolAdaptorFactory;
08:        import com.tc.net.protocol.TCProtocolAdaptor;
09:
10:        import java.io.IOException;
11:
12:        /**
13:         * Manages connections and listeners. The connection manager also provides default implementations of connection event
14:         * handlers. Specifically, the default behaviour is close connections upon any error event
15:         * 
16:         * @author teck
17:         */
18:        public interface TCConnectionManager {
19:
20:            /**
21:             * Create a new non-connected connection
22:             * 
23:             * @param adaptor protocol adaptor to use for incoming network data
24:             */
25:            public TCConnection createConnection(TCProtocolAdaptor adaptor);
26:
27:            /**
28:             * Create a new listening socket (ie. java.net.ServerSocket) on the given socket address. A default accept queue depth
29:             * will be used, and reuseAddress will be true
30:             * 
31:             * @param addr the address to bind the listener to
32:             * @param factory protocol adaptor factory used to attach protocol adaptors to newly accpted connections
33:             */
34:            public TCListener createListener(TCSocketAddress addr,
35:                    ProtocolAdaptorFactory factory) throws IOException;
36:
37:            /**
38:             * Create a new listening socket (ie. java.net.ServerSocket) on the given socket address with the given accect queue
39:             * depth
40:             * 
41:             * @param addr the address to bind the listener to
42:             * @param factory protocol adaptor factory used to attach protocol adaptors to newly accpted connections
43:             * @param backlog accept queue backlog depth
44:             * @param reuseAddr whether the bind port will be reused if in use by open sockets
45:             */
46:            public TCListener createListener(TCSocketAddress addr,
47:                    ProtocolAdaptorFactory factory, int backlog,
48:                    boolean reuseAddr) throws IOException;
49:
50:            /**
51:             * Close any open connections created through this connection manager instance
52:             */
53:            public void asynchCloseAllConnections();
54:
55:            public void closeAllConnections(long timeout);
56:
57:            /**
58:             * Close all listeners created through this connection manager instance
59:             */
60:            public void closeAllListeners();
61:
62:            /**
63:             * Shutdown this connection manager. Shutdown will call <code>closeAllConnections()</code> and
64:             * <code>closeAllListeners()</code> on your behalf. A shutdown connection manager can be reused or restarted
65:             */
66:            public void shutdown();
67:
68:            /**
69:             * Get all non-closed connection instances created by this manager
70:             */
71:            public TCConnection[] getAllConnections();
72:
73:            /**
74:             * Get all active listener instances created by this manager
75:             */
76:            public TCListener[] getAllListeners();
77:
78:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.