Issue Details (XML | Word | Printable)

Key: DIRMINA-38
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Trustin Lee
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

Adding a flush method to ProtocolEncoderOutput

Created: 13/May/05 04:00 PM   Updated: 07/Dec/05 06:13 PM
Return to search
Component/s: None
Affects Version/s: 0.7.0, 0.7.1, 0.8.0
Fix Version/s: 0.9.0

Time Tracking:
Not Specified

Issue Links:
dependent
 

Resolution Date: 12/Jun/05 09:08 PM


 Description  « Hide
It would be very interesting to have a flush method in ProtocolEncoderOutput interface, allowing the caller to send chunks of PDU without creating a full bufer to store it. The memory footprint could be greatly improved.

This method could be blocking or not blocking (i.e, MINA could return a status after having sent the PDU chunk - blocking mode - or storing the PDU chunk in it's own buffer pool, and returning).

wdyt?

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Trustin Lee added a comment - 13/May/05 04:28 PM
flush() method will also return Future so that codec can await.

Trustin Lee added a comment - 13/May/05 04:30 PM
I'll fix this issue in 0.9 stream with 'Future' enhancement. Is that OK?

Trustin Lee added a comment - 12/Jun/05 09:08 PM
ProtocolEncoderOutput has flush() method that returns WriteFuture now.

Emmanuel Lecharny added a comment - 07/Dec/05 06:13 PM
It has been closed a looooong time ago !