On 05.05.14 11:32, 何品 wrote:
|Reset$.MODULE$|
I know I can use it as this,but the problem is when i send the Reset message to an PersistentChannel,it comes error .
cause
```
   case Reset ⇒ throw new ResetException
```
So,the PersistentChannel don't have the reset feature?!

The channel is reset by restarting it and the thrown exception enforces that restart.

在 2014年4月15日星期二UTC+8下午4时28分49秒,Patrik Nordwall写道:




    On Tue, Apr 15, 2014 at 12:53 AM, Chris Toomey <[email protected]
    <javascript:>> wrote:

        Thanks.  It'd be helpful to include this information about
        persistent channels being resettable via the Reset message and
        via a restart in the documentation on persistent channels
        (both the overall persistence doc. and the PersistentChannel
        java doc.).


    Please add that to the ticket.
    /Patrik


        Regarding reset on restart, do you mean when the JVM running
        akka is restarted?

        thx,
        Chris

        On Monday, April 14, 2014 5:31:52 AM UTC-7, Martynas
        Mickevičius wrote:

            Hi Chris,

            that is a bug. I registered an issue here:
            https://github.com/akka/akka/issues/15000
            <https://github.com/akka/akka/issues/15000>


            On Mon, Apr 14, 2014 at 6:12 AM, Chris Toomey
            <[email protected]> wrote:

                I'm working on an akka app using Java, and am trying
                to reset a PersistentChannel using Reset
                <http://doc.akka.io/japi/akka/2.3.2/akka/persistence/Reset.html>
                per this
                
<https://groups.google.com/d/topic/akka-user/tnIKnt4kMbw/discussion>thread.
                 The java compiler is telling me that the Reset()
                constructor doesn't exist, and indeed when I
                decompiled the Reset.class file in the persistence jar
                file it didn't show a constructor.  I'm using akka
                2.3.2.  Is there a different way to do this channel
                reset from Java?

                thx,
                Chris

-- >>>>>>>>>> Read the docs: http://akka.io/docs/
                >>>>>>>>>> Check the FAQ:
                http://doc.akka.io/docs/akka/current/additional/faq.html
                <http://doc.akka.io/docs/akka/current/additional/faq.html>
                >>>>>>>>>> Search the archives:
                https://groups.google.com/group/akka-user
                <https://groups.google.com/group/akka-user>
                ---
                You received this message because you are subscribed
                to the Google Groups "Akka User List" group.
                To unsubscribe from this group and stop receiving
                emails from it, send an email to
                [email protected].
                To post to this group, send email to
                [email protected].

                Visit this group at
                http://groups.google.com/group/akka-user
                <http://groups.google.com/group/akka-user>.
                For more options, visit
                https://groups.google.com/d/optout
                <https://groups.google.com/d/optout>.




-- Martynas Mickevičius
            Typesafe <http://typesafe.com/> – Reactive
            <http://www.reactivemanifesto.org/> Apps on the JVM

-- >>>>>>>>>> Read the docs: http://akka.io/docs/
        >>>>>>>>>> Check the FAQ:
        http://doc.akka.io/docs/akka/current/additional/faq.html
        <http://doc.akka.io/docs/akka/current/additional/faq.html>
        >>>>>>>>>> Search the archives:
        https://groups.google.com/group/akka-user
        <https://groups.google.com/group/akka-user>
        ---
        You received this message because you are subscribed to the
        Google Groups "Akka User List" group.
        To unsubscribe from this group and stop receiving emails from
        it, send an email to [email protected] <javascript:>.
        To post to this group, send email to [email protected]
        <javascript:>.
        Visit this group at http://groups.google.com/group/akka-user
        <http://groups.google.com/group/akka-user>.
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.




--
    Patrik Nordwall
    Typesafe <http://typesafe.com/> - Reactive apps on the JVM
    Twitter: @patriknw

    JOIN US. REGISTER TODAY! <http://www.scaladays.org/>
    Scala <http://www.scaladays.org/>
    Days <http://www.scaladays.org/>
    June 16th-18th, <http://www.scaladays.org/>
    Berlin <http://www.scaladays.org/>

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

--
Martin Krasser

blog:    http://krasserm.blogspot.com
code:    http://github.com/krasserm
twitter: http://twitter.com/mrt1nz

--
     Read the docs: http://akka.io/docs/
     Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
     Search the archives: https://groups.google.com/group/akka-user
--- You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to