public class HedwigClient extends Object implements Client
Publisher
,
Subscriber
Constructor and Description |
---|
HedwigClient(ClientConfiguration cfg)
Construct a hedwig client object.
|
HedwigClient(ClientConfiguration cfg,
org.jboss.netty.channel.ChannelFactory socketFactory)
Construct a hedwig client object, using a preexisting socket factory.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the client and free all associated resources.
|
Publisher |
getPublisher()
Retrieve the Publisher object for the client.
|
Subscriber |
getSubscriber()
Retrieve the Subscriber object for the client.
|
public HedwigClient(ClientConfiguration cfg)
cfg
- The client configuration.public HedwigClient(ClientConfiguration cfg, org.jboss.netty.channel.ChannelFactory socketFactory)
cfg
- The client configurationsocketFactory
- A netty socket factory.public Publisher getPublisher()
Client
getPublisher
in interface Client
Publisher
public Subscriber getSubscriber()
Client
getSubscriber
in interface Client
Subscriber
Copyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.