Package co.paralleluniverse.actors
Class ActorInfo
- java.lang.Object
-
- co.paralleluniverse.actors.ActorInfo
-
public class ActorInfo extends java.lang.Object
Information about an actor returned byActorsMXBean
.
-
-
Constructor Summary
Constructors Constructor Description ActorInfo(long id, java.lang.String name, boolean fiber, long receivedMessages, int queueLength, int restarts, java.lang.String[] lastDeathCauses, java.lang.String[] mailbox, java.lang.String stackTrace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getId()
The actor's strand's IDjava.lang.String[]
getLastDeathCauses()
The latest few death-causes for this actor (relevant if it's been restarted by aSupervisorActor
.java.lang.String[]
getMailbox()
The messages currently waiting in the actor's mailboxjava.lang.String
getName()
The actor's nameint
getQueueLength()
The number of messages currently waiting in the actor's mailbox.long
getReceivedMessages()
The number of messages this actor has received.int
getRestarts()
The number of times this actor has been restarted by aSupervisorActor
.java.lang.String
getStackTrace()
The actor's current call-stackboolean
isFiber()
Whether the actor's strand is a fiber
-
-
-
Constructor Detail
-
ActorInfo
@ConstructorParameters({"id","name","fiber","receivedMessages","queueLength","restarts","lastDeathCauses","mailbox","stackTrace"}) public ActorInfo(long id, java.lang.String name, boolean fiber, long receivedMessages, int queueLength, int restarts, java.lang.String[] lastDeathCauses, java.lang.String[] mailbox, java.lang.String stackTrace)
-
-
Method Detail
-
getId
public long getId()
The actor's strand's ID
-
getName
public java.lang.String getName()
The actor's name
-
isFiber
public boolean isFiber()
Whether the actor's strand is a fiber
-
getReceivedMessages
public long getReceivedMessages()
The number of messages this actor has received.
-
getQueueLength
public int getQueueLength()
The number of messages currently waiting in the actor's mailbox.
-
getRestarts
public int getRestarts()
The number of times this actor has been restarted by aSupervisorActor
.
-
getLastDeathCauses
public java.lang.String[] getLastDeathCauses()
The latest few death-causes for this actor (relevant if it's been restarted by aSupervisorActor
.
-
getMailbox
public java.lang.String[] getMailbox()
The messages currently waiting in the actor's mailbox
-
getStackTrace
public java.lang.String getStackTrace()
The actor's current call-stack
-
-