org.glassfish.cafe.api.bean
Enum UserProcedureEvent.Type

java.lang.Object
  extended by java.lang.Enum<UserProcedureEvent.Type>
      extended by org.glassfish.cafe.api.bean.UserProcedureEvent.Type
All Implemented Interfaces:
Serializable, Comparable<UserProcedureEvent.Type>
Enclosing class:
UserProcedureEvent

public static enum UserProcedureEvent.Type
extends Enum<UserProcedureEvent.Type>


Enum Constant Summary
ABOUTTOEXPIRE
          A locally generated event indicating that the validity period is about to expire and that extending the validity period by setting a new expiration time and invoking the update() method, is called for (if the application wants to keep the procedure alive).
NOTIFICATION
          A Presence specific event indicating the receipt of a Notification message with information.
REFRESHED
          The remote side has received new information for an existing user procedure and has accepted this information.
REFRESHFAILED
          The remote side has received new information for an existing user procedure but cannot accept this information.
STARTED
          The remote side has accepted the initial message of the user procedure.
STARTFAILED
          The remote side cannot start a user procedure with the received initial message.
TERMINATED
          The user procedure has been ended by the remote side.
 
Method Summary
static UserProcedureEvent.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UserProcedureEvent.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STARTED

public static final UserProcedureEvent.Type STARTED
The remote side has accepted the initial message of the user procedure.


STARTFAILED

public static final UserProcedureEvent.Type STARTFAILED
The remote side cannot start a user procedure with the received initial message.


REFRESHED

public static final UserProcedureEvent.Type REFRESHED
The remote side has received new information for an existing user procedure and has accepted this information.


REFRESHFAILED

public static final UserProcedureEvent.Type REFRESHFAILED
The remote side has received new information for an existing user procedure but cannot accept this information.


NOTIFICATION

public static final UserProcedureEvent.Type NOTIFICATION
A Presence specific event indicating the receipt of a Notification message with information. This can occur in both the PresenceWatcher and the WatcherInfoSubscriber. The corresponding messages are of type PresenceMessage and WatcherInfoMessage respectively.


ABOUTTOEXPIRE

public static final UserProcedureEvent.Type ABOUTTOEXPIRE
A locally generated event indicating that the validity period is about to expire and that extending the validity period by setting a new expiration time and invoking the update() method, is called for (if the application wants to keep the procedure alive).


TERMINATED

public static final UserProcedureEvent.Type TERMINATED
The user procedure has been ended by the remote side.

Method Detail

values

public static UserProcedureEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (UserProcedureEvent.Type c : UserProcedureEvent.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static UserProcedureEvent.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010. All Rights Reserved.