org.apache.curator.framework.api
Enum CuratorEventType

java.lang.Object
  extended by java.lang.Enum<CuratorEventType>
      extended by org.apache.curator.framework.api.CuratorEventType
All Implemented Interfaces:
Serializable, Comparable<CuratorEventType>

public enum CuratorEventType
extends Enum<CuratorEventType>


Enum Constant Summary
CHILDREN
          Corresponds to CuratorFramework.getChildren()
CLOSING
          Event sent when client is being closed
CREATE
          Corresponds to CuratorFramework.create()
DELETE
          Corresponds to CuratorFramework.delete()
EXISTS
          Corresponds to CuratorFramework.checkExists()
GET_ACL
          Corresponds to CuratorFramework.getACL()
GET_DATA
          Corresponds to CuratorFramework.getData()
SET_ACL
          Corresponds to CuratorFramework.setACL()
SET_DATA
          Corresponds to CuratorFramework.setData()
SYNC
          Corresponds to CuratorFramework.sync(String, Object)
WATCHED
          Corresponds to Watchable.usingWatcher(Watcher) or Watchable.watched()
 
Method Summary
static CuratorEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CuratorEventType[] 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

CREATE

public static final CuratorEventType CREATE
Corresponds to CuratorFramework.create()


DELETE

public static final CuratorEventType DELETE
Corresponds to CuratorFramework.delete()


EXISTS

public static final CuratorEventType EXISTS
Corresponds to CuratorFramework.checkExists()


GET_DATA

public static final CuratorEventType GET_DATA
Corresponds to CuratorFramework.getData()


SET_DATA

public static final CuratorEventType SET_DATA
Corresponds to CuratorFramework.setData()


CHILDREN

public static final CuratorEventType CHILDREN
Corresponds to CuratorFramework.getChildren()


SYNC

public static final CuratorEventType SYNC
Corresponds to CuratorFramework.sync(String, Object)


GET_ACL

public static final CuratorEventType GET_ACL
Corresponds to CuratorFramework.getACL()


SET_ACL

public static final CuratorEventType SET_ACL
Corresponds to CuratorFramework.setACL()


WATCHED

public static final CuratorEventType WATCHED
Corresponds to Watchable.usingWatcher(Watcher) or Watchable.watched()


CLOSING

public static final CuratorEventType CLOSING
Event sent when client is being closed

Method Detail

values

public static CuratorEventType[] 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 (CuratorEventType c : CuratorEventType.values())
    System.out.println(c);

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

valueOf

public static CuratorEventType 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 © 2011–2014 The Apache Software Foundation. All rights reserved.