public final class ZKClientServices extends Object
ZKClientService with modified behaviors.| Modifier and Type | Method and Description |
|---|---|
static ZKClientService |
delegate(ZKClient client)
Creates a
ZKClientService from the given ZKClient if the given ZKClient is an instance of
ZKClientService or is a ForwardingZKClient that eventually trace back to a delegate of type
ZKClientService. |
static ZKClientService |
delegate(ZKClient client,
ZKClientService clientService)
Creates a
ZKClientService that for all ZKClient methods would be delegated to another
ZKClient, while methods for ZKClientService would be delegated to another ZKClientService,
which the given ZKClient and ZKClientService could be different instances. |
public static ZKClientService delegate(ZKClient client)
ZKClientService from the given ZKClient if the given ZKClient is an instance of
ZKClientService or is a ForwardingZKClient that eventually trace back to a delegate of type
ZKClientService. If such a ZKClientService instance is found, this method returns
an instance by invoking delegate(ZKClient, ZKClientService) with the given ZKClient and
the ZKClientService found respectively.client - The ZKClient.ZKClientService.IllegalArgumentException - If no ZKClientService is found.public static ZKClientService delegate(ZKClient client, ZKClientService clientService)
ZKClientService that for all ZKClient methods would be delegated to another
ZKClient, while methods for ZKClientService would be delegated to another ZKClientService,
which the given ZKClient and ZKClientService could be different instances.client - The ZKClient for delegationclientService - The ZKClientService for delegation.ZKClientService.Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.