org.apache.curator.framework.api
Interface PathAndBytesable<T>

All Known Subinterfaces:
ACLBackgroundPathAndBytesable<T>, ACLCreateModeBackgroundPathAndBytesable<T>, ACLCreateModePathAndBytesable<T>, ACLPathAndBytesable<T>, BackgroundPathAndBytesable<T>, CreateBackgroundModeACLable, CreateBuilder, CreateModalPathAndBytesable<T>, ProtectACLCreateModePathAndBytesable<T>, SetDataBackgroundVersionable, SetDataBuilder, TransactionCreateBuilder, TransactionSetDataBuilder

public interface PathAndBytesable<T>


Method Summary
 T forPath(String path)
          Commit the currently building operation using the given path and the default data for the client (usually a byte[0] unless changed via CuratorFrameworkFactory.Builder#defaultData(byte[])).
 T forPath(String path, byte[] data)
          Commit the currently building operation using the given path and data
 

Method Detail

forPath

T forPath(String path,
          byte[] data)
          throws Exception
Commit the currently building operation using the given path and data

Parameters:
path - the path
data - the data
Returns:
operation result if any
Throws:
Exception - errors

forPath

T forPath(String path)
          throws Exception
Commit the currently building operation using the given path and the default data for the client (usually a byte[0] unless changed via CuratorFrameworkFactory.Builder#defaultData(byte[])).

Parameters:
path - the path
Returns:
operation result if any
Throws:
Exception - errors


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.