continuations howto / tutorial / information?

View: New views
3 Messages — Rating Filter:   Alert me  

continuations howto / tutorial / information?

by Horaci Macias-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi everybody,

I'm totally new to this group and RIFE. I found some information about
RIFE continuations and I'm trying to know more about them to be able
to apply them to a standalone (and totally unrelated to a web
application) piece of software.
My understanding is that continuations in RIFE can be used by non-web
applications and so far everything I've read seems to indicate this is
what I need, but I'm having a hard time finding some "getting started"
kind of documentation.

To give you a 10000ft view of the problem I'm trying to solve, I'm
trying to refactor an API so that instead of using the listener/
observer approach it's all sequential and using return types and/or
exceptions.

Instead of ....

myWorker.do(action, myListener);

...and....

class MyListener implements Listener {
public void actionFinished(Result r)
{
  //continue execution here
}
}

...I want to do this...

Result r = myWorker.do(action);
//continue execution here


I hope this makes sense.
Could anybody point me to the right tutorial / manual / testcase to
get myself started? Remember this is totally non web related; there
isn't even a GUI involved. I'm just trying to refactor an asynchronous
API into a synchronous one but without wasting resources by making my
Threads sleep/wait.

thanks,

Horaci

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: continuations howto / tutorial / information?

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Horaci,

There's no dedicated document for RIFE/Continuations yet, however  
there are a number of test and examples that might be able to help you.

http://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/rife/continuations/
http://svn.rifers.org/rife-workflow/trunk/

Finally, the javadocs at http://rifers.org/docs/api/com/uwyn/rife/continuations/package-summary.html 
  might be useful too.

Hope this helps,

Geert

On 17 Oct 2008, at 07:28, Horaci Macias wrote:

>
> Hi everybody,
>
> I'm totally new to this group and RIFE. I found some information about
> RIFE continuations and I'm trying to know more about them to be able
> to apply them to a standalone (and totally unrelated to a web
> application) piece of software.
> My understanding is that continuations in RIFE can be used by non-web
> applications and so far everything I've read seems to indicate this is
> what I need, but I'm having a hard time finding some "getting started"
> kind of documentation.
>
> To give you a 10000ft view of the problem I'm trying to solve, I'm
> trying to refactor an API so that instead of using the listener/
> observer approach it's all sequential and using return types and/or
> exceptions.
>
> Instead of ....
>
> myWorker.do(action, myListener);
>
> ...and....
>
> class MyListener implements Listener {
> public void actionFinished(Result r)
> {
>  //continue execution here
> }
> }
>
> ...I want to do this...
>
> Result r = myWorker.do(action);
> //continue execution here
>
>
> I hope this makes sense.
> Could anybody point me to the right tutorial / manual / testcase to
> get myself started? Remember this is totally non web related; there
> isn't even a GUI involved. I'm just trying to refactor an asynchronous
> API into a synchronous one but without wasting resources by making my
> Threads sleep/wait.
>
> thanks,
>
> Horaci
>
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: continuations howto / tutorial / information?

by Horaci Macias-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


thanks Geert; I'll give it a go and post any results.

thanks,

Horaci

On Mon, Oct 20, 2008 at 5:27 AM, Geert Bevin <gbevin@...> wrote:

>
> Hi Horaci,
>
> There's no dedicated document for RIFE/Continuations yet, however
> there are a number of test and examples that might be able to help you.
>
> http://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/rife/continuations/
> http://svn.rifers.org/rife-workflow/trunk/
>
> Finally, the javadocs at http://rifers.org/docs/api/com/uwyn/rife/continuations/package-summary.html
>  might be useful too.
>
> Hope this helps,
>
> Geert
>
> On 17 Oct 2008, at 07:28, Horaci Macias wrote:
>
>>
>> Hi everybody,
>>
>> I'm totally new to this group and RIFE. I found some information about
>> RIFE continuations and I'm trying to know more about them to be able
>> to apply them to a standalone (and totally unrelated to a web
>> application) piece of software.
>> My understanding is that continuations in RIFE can be used by non-web
>> applications and so far everything I've read seems to indicate this is
>> what I need, but I'm having a hard time finding some "getting started"
>> kind of documentation.
>>
>> To give you a 10000ft view of the problem I'm trying to solve, I'm
>> trying to refactor an API so that instead of using the listener/
>> observer approach it's all sequential and using return types and/or
>> exceptions.
>>
>> Instead of ....
>>
>> myWorker.do(action, myListener);
>>
>> ...and....
>>
>> class MyListener implements Listener {
>> public void actionFinished(Result r)
>> {
>>  //continue execution here
>> }
>> }
>>
>> ...I want to do this...
>>
>> Result r = myWorker.do(action);
>> //continue execution here
>>
>>
>> I hope this makes sense.
>> Could anybody point me to the right tutorial / manual / testcase to
>> get myself started? Remember this is totally non web related; there
>> isn't even a GUI involved. I'm just trying to refactor an asynchronous
>> API into a synchronous one but without wasting resources by making my
>> Threads sleep/wait.
>>
>> thanks,
>>
>> Horaci
>>
>> >
>
> --
> Geert Bevin
> Terracotta - http://www.terracotta.org
> Uwyn "Use what you need" - http://uwyn.com
> RIFE Java application framework - http://rifers.org
> Music and words - http://gbevin.com
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web