org.zeromq.jzmq.sockets
Class PubSocketBuilder

java.lang.Object
  extended by org.zeromq.jzmq.sockets.SocketBuilder
      extended by org.zeromq.jzmq.sockets.PubSocketBuilder
All Implemented Interfaces:
Bindable, Connectable

public class PubSocketBuilder
extends SocketBuilder


Constructor Summary
PubSocketBuilder(ManagedContext context)
           
 
Method Summary
 Socket bind(String url)
           
 Socket connect(String url)
          Connect to a url
 
Methods inherited from class org.zeromq.jzmq.sockets.SocketBuilder
getIdentity, getLinger, getRecvHWM, getSendHWM, getSocketType, getSwap, withIdentity, withLinger, withReceiveHWM, withSendHWM, withSwap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PubSocketBuilder

public PubSocketBuilder(ManagedContext context)
Method Detail

connect

public Socket connect(String url)
               throws Exception
Description copied from interface: Connectable
Connect to a url

Specified by:
connect in interface Connectable
Specified by:
connect in class SocketBuilder
Parameters:
url - the url to connect to
Returns:
the socket
Throws:
Exception

bind

public Socket bind(String url)
            throws Exception
Specified by:
bind in interface Bindable
Specified by:
bind in class SocketBuilder
Throws:
Exception


Copyright © 2013. All Rights Reserved.