INT-2126 Add TcpConnection Event Publisher
Reference: https://jira.springsource.org/browse/INT-2126 * Add TcpConnectionEvent for OPEN, CLOSE, EXCEPTION. * Add Event Type Enum - Provides type safety for event types. * Add <int-ip:tcp-connection-event-inbound-channel-adapter /> * Add the ability to filter events (restrict to one or more subclasses) * Add publishEvent() to TcpConnectionSupport to permit, for example, connection interceptors to publish events via the connection, but the event source can only be the connection used to publish the event. * Add documentation to Reference Documentation section *What's New* INT-2871 Provide Mechanism to Find TCP Connections Reference: https://jira.springsource.org/browse/INT-2871 * Add getOpenConnectionIds() to Abstract Connection Factory * Add closeConnection(String connectionID) * Introduce removeClosedConnectionsAndReturnOpenConnectionIds INT-2877 TCP Extension Improvements Reference: https://jira.springsource.org/browse/INT-2877 * Make improvements to make extension easier. * Add setCustomHeaders() to mapper. * Add mapper to connection factory namespace parser. * Add plumbing for stateful Deserializers. * Refactor setting standard headers * rename setCustomHeaders to supplyCustomHeaders - returning a Map and not exposing the MessageBuilder to subclasses INT-2872 Remove Deprecated Items in ip Module Reference: https://jira.springsource.org/browse/INT-2872 * pool-size Attribute * setScheduler * TcpSendingMessageHandler.getConnection() * Deprecated attribute on TCP Connection Factory.
This commit is contained in:
committed by
Gunnar Hillert
parent
0374b56ee1
commit
b045e8c2be
@@ -12,6 +12,46 @@
|
||||
|
||||
<section id="3.0-new-components">
|
||||
<title>New Components</title>
|
||||
<section id="3.0-tcp-events">
|
||||
<title>TCP/IP Connection Events and Connection Management</title>
|
||||
<para>
|
||||
The (supplied) <classname>TcpConnection</classname>s now emit
|
||||
<interfacename>ApplicationEvent</interfacename>s (specifically
|
||||
<classname>TcpConnectionEvent</classname>s) when connections are
|
||||
opened, closed, or an exception occurs. This allows applications
|
||||
to be informed of changes to TCP connections using the normal
|
||||
Spring <interfacename>ApplicationListener</interfacename>
|
||||
mechanism.
|
||||
</para>
|
||||
<para>
|
||||
<classname>AbstractTcpConnection</classname> has been renamed
|
||||
<classname>TcpConnectionSupport</classname>; custom connections that
|
||||
are subclasses of this class, can use its methods to publish events.
|
||||
Similarly, <classname>AbstractTcpConnectionInterceptor</classname> has
|
||||
been renamed to <classname>TcpConnectionInterceptorSupport</classname>.
|
||||
</para>
|
||||
<para>
|
||||
In addition, a new <code><int-ip:tcp-connection-event-channel-adapter/></code>
|
||||
is provided; by default, this adapter sends all <classname>TcpConnectionEvents</classname>
|
||||
to a <interfacename>Channel</interfacename>.
|
||||
</para>
|
||||
<para>
|
||||
Further, the TCP Connection Factories, now provide a new method
|
||||
<code>getOpenConnectionIds()</code>, which returns a list of identifiers for all
|
||||
open connections; this allows applications, for example, to broadcast to all
|
||||
open connections.
|
||||
</para>
|
||||
<para>
|
||||
Finally, the connection factories also provide a new method
|
||||
<code>closeConnection(String connectionId)</code> which allows applications
|
||||
to explicitly close a connection using its ID.
|
||||
</para>
|
||||
<para>
|
||||
Further documentation for these features will follow; for now, refer to the
|
||||
schema documentation for information about the new adapter, and JavaDocs for
|
||||
it as well as the other features.
|
||||
</para>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section id="3.0-general">
|
||||
|
||||
Reference in New Issue
Block a user