[
https://issues.apache.org/jira/browse/DIRMINA-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Webb updated DIRMINA-350:
------------------------------
Attachment: HeartbeatIdleFilter.java
Here is a class that will send a message to the remote client when the session
becomes idle. Here is an example of its usage:
ByteBuffer buffer = ByteBuffer.allocate(16);
buffer.put( Charset.defaultCharset().encode("heartbeat") );
buffer.flip();
HeartbeatIdleFilter hbf = new HeartbeatIdleFilter(buffer);
DefaultIoFilterChainBuilder chain = acceptor.getFilterChain();
chain.addLast("heartbeat", hbf);
> Heartbeat message sending filter.
> ---------------------------------
>
> Key: DIRMINA-350
> URL: https://issues.apache.org/jira/browse/DIRMINA-350
> Project: MINA
> Issue Type: New Feature
> Components: Filter
> Reporter: Trustin Lee
> Attachments: HeartbeatIdleFilter.java
>
>
> We need a filter that sends a certain message to the remote peer periodically
> to let the remote peer that the local peer is alive. It is very easy to
> implement and will be very helpful.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.