Beispiel #1
0
 internal Backgrounding(CuratorFrameworkImpl client,
                        IBackgroundCallback callback,
                        Object context,
                        IExecutor executor)
     : this(wrapCallback(client, callback, executor), context)
 {
 }
 public ErrorListenerPathAndBytesable <String> inBackground(IBackgroundCallback callback,
                                                            Object context,
                                                            IExecutor executor)
 {
     backgrounding = new Backgrounding(client, callback, context, executor);
     return(this);
 }
Beispiel #3
0
 internal Backgrounding()
 {
     inBackgrnd    = false;
     context       = null;
     this.callback = null;
     errorListener = null;
 }
Beispiel #4
0
 internal Backgrounding(CuratorFrameworkImpl client, 
                         IBackgroundCallback callback, 
                         Object context, 
                         IExecutor executor)
     : this(wrapCallback(client, callback, executor), context)
 {
 }
Beispiel #5
0
 internal Backgrounding(IBackgroundCallback callback, Object context)
 {
     this.inBackgrnd = true;
     this.context = context;
     this.callback = callback;
     errorListener = null;
 }
Beispiel #6
0
 internal Backgrounding(bool inBackground)
 {
     this.inBackgrnd = inBackground;
     this.context = null;
     this.callback = null;
     errorListener = null;
 }
Beispiel #7
0
 internal Backgrounding(IBackgroundCallback callback, Object context)
 {
     this.inBackgrnd = true;
     this.context    = context;
     this.callback   = callback;
     errorListener   = null;
 }
Beispiel #8
0
 internal Backgrounding(bool inBackground)
 {
     this.inBackgrnd = inBackground;
     this.context    = null;
     this.callback   = null;
     errorListener   = null;
 }
Beispiel #9
0
 public BackgroundCallback(CuratorFrameworkImpl client,
                           IBackgroundCallback callback,
                           IExecutor service)
 {
     _client   = client;
     _callback = callback;
     _service  = service;
 }
 internal OperationAndData(IBackgroundOperation <T> operation, T data, IBackgroundCallback callback, ErrorCallback <T> errorCallback, Object context)
 {
     this.operation     = operation;
     this.data          = data;
     this.callback      = callback;
     this.errorCallback = errorCallback;
     this.context       = context;
     reset();
 }
Beispiel #11
0
 internal Backgrounding(Backgrounding rhs, IUnhandledErrorListener errorListener)
 {
     if (rhs == null)
     {
         rhs = new Backgrounding();
     }
     this.inBackgrnd = rhs.inBackgrnd;
     this.context = rhs.context;
     this.callback = rhs.callback;
     this.errorListener = errorListener;
 }
Beispiel #12
0
 internal Backgrounding(Backgrounding rhs, IUnhandledErrorListener errorListener)
 {
     if (rhs == null)
     {
         rhs = new Backgrounding();
     }
     this.inBackgrnd    = rhs.inBackgrnd;
     this.context       = rhs.context;
     this.callback      = rhs.callback;
     this.errorListener = errorListener;
 }
Beispiel #13
0
 public IErrorListenerPathable <byte[]> inBackground(IBackgroundCallback callback, Object context, IExecutor executor)
 {
     backgrounding = new Backgrounding(client, callback, context, executor);
     return(this);
 }
Beispiel #14
0
 public IErrorListenerPathable <byte[]> inBackground(IBackgroundCallback callback, Object context)
 {
     backgrounding = new Backgrounding(callback, context);
     return(this);
 }
 public ErrorListenerPathAndBytesable <String> inBackground(IBackgroundCallback callback)
 {
     backgrounding = new Backgrounding(callback);
     return(this);
 }
 public ErrorListenerPathAndBytesable <String> inBackground(IBackgroundCallback callback, Object context, IExecutor executor)
 {
     return(_createBuilderImpl.inBackground(callback, context, executor));
 }
 public ErrorListenerPathAndBytesable <String> inBackground(IBackgroundCallback callback)
 {
     return(_createBuilderImpl.inBackground(callback));
 }
Beispiel #18
0
 internal Backgrounding()
 {
     inBackgrnd = false;
     context = null;
     this.callback = null;
     errorListener = null;
 }
Beispiel #19
0
 public ErrorListenerPathAndBytesable <Stat> inBackground(IBackgroundCallback callback, IExecutor executor)
 {
     return(_setDataBuilderImpl.inBackground(callback, executor));
 }
Beispiel #20
0
 public ErrorListenerPathAndBytesable <Stat> inBackground(IBackgroundCallback callback, Object context)
 {
     backgrounding = new Backgrounding(callback, context);
     return(this);
 }
Beispiel #21
0
 public BackgroundCallback(CuratorFrameworkImpl client, 
                             IBackgroundCallback callback, 
                             IExecutor service)
 {
     _client = client;
     _callback = callback;
     _service = service;
 }
 public IErrorListenerPathable <List <String> > inBackground(IBackgroundCallback callback)
 {
     backgrounding = new Backgrounding(callback);
     return(this);
 }
Beispiel #23
0
 public IErrorListenerPathable <byte[]> inBackground(IBackgroundCallback callback, Object context)
 {
     return(_getDataBuilderImpl.inBackground(callback, context));
 }
Beispiel #24
0
 public ErrorListenerPathAndBytesable <Stat> inBackground(IBackgroundCallback callback, Object context)
 {
     return(_setDataBuilderImpl.inBackground(callback, context));
 }
Beispiel #25
0
 public ErrorListenerPathAndBytesable <Stat> inBackground(IBackgroundCallback callback, IExecutor executor)
 {
     backgrounding = new Backgrounding(client, callback, executor);
     return(this);
 }
Beispiel #26
0
 public IErrorListenerPathable <byte[]> inBackground(IBackgroundCallback callback, IExecutor executor)
 {
     return(_getDataBuilderImpl.inBackground(callback, executor));
 }
Beispiel #27
0
 private static IBackgroundCallback wrapCallback(CuratorFrameworkImpl client,
                                                 IBackgroundCallback callback,
                                                 IExecutor executor)
 {
     return(new BackgroundCallback(client, callback, executor));
 }
 public IErrorListenerPathable <List <String> > inBackground(IBackgroundCallback callback, IExecutor executor)
 {
     backgrounding = new Backgrounding(client, callback, executor);
     return(this);
 }
Beispiel #29
0
 private static IBackgroundCallback wrapCallback(CuratorFrameworkImpl client, 
                                                 IBackgroundCallback callback, 
                                                 IExecutor executor)
 {
     return new BackgroundCallback(client,callback, executor);
 }