public class

AccessOption

extends Object
java.lang.Object
   ↳ org.apache.helix.AccessOption

Summary

Fields
public static int EPHEMERAL
public static int EPHEMERAL_SEQUENTIAL
public static int PERSISTENT
public static int PERSISTENT_SEQUENTIAL
public static int THROW_EXCEPTION_IFNOTEXIST
Public Constructors
AccessOption()
Public Methods
static CreateMode getMode(int options)
Helper method to get zookeeper create mode from options
static boolean isThrowExceptionIfNotExist(int options)
Helper method to get is-throw-exception-on-node-not-exist from options
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static int EPHEMERAL

public static int EPHEMERAL_SEQUENTIAL

public static int PERSISTENT

public static int PERSISTENT_SEQUENTIAL

public static int THROW_EXCEPTION_IFNOTEXIST

Public Constructors

public AccessOption ()

Public Methods

public static CreateMode getMode (int options)

Helper method to get zookeeper create mode from options

Parameters
options bitmask representing mode; least significant set flag is selected
Returns
  • zookeeper create mode

public static boolean isThrowExceptionIfNotExist (int options)

Helper method to get is-throw-exception-on-node-not-exist from options

Parameters
options bitmask containing Zookeeper mode options
Returns
  • true if in is-throw-exception-on-node-not-exist, false otherwise