directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dave irving (JIRA)" <>
Subject [jira] Commented: (DIRMINA-120) Callbacks for IoFutures
Date Sat, 12 Nov 2005 10:01:04 GMT
    [ ] 

dave irving commented on DIRMINA-120:


I've got a feeling that this might be useful for IoFutures in general.
For example, I currently need to know when I've fully written a clients "last response" so
that I can initiate connection closure.
For me, a very clean way would be to schedule a listener with a WriteFuture.

I'll have a tinker and see if I can get something built in to IoFuture....

> Callbacks for IoFutures
> -----------------------
>          Key: DIRMINA-120
>          URL:
>      Project: Directory MINA
>         Type: Improvement
>     Reporter: Trustin Lee
>     Assignee: Trustin Lee
>      Fix For: 0.9

> IoFuture provides only blocking-way ('join' method) for user to find out the result of
an I/O request.  It would be great if users can specify a callback:
> ConnectFuture future = connector.connect(...);
> future.setCallback( new ConnectFuture.Callback() {
>     public void connectionEstablished( IoSession session ) {
>     }
>     public void connectionFailed( Throwable cause ) {
>     }
> } );
> There can be a race condition if the connection process ends before a user calls setCallback()
method, but we can resolve this carefully so users don't notice any issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message