org.zeromq.jzmq.sockets
Class SubSocketBuilder

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

public class SubSocketBuilder
extends SocketBuilder
implements Subscribable


Constructor Summary
SubSocketBuilder(ManagedContext context)
           
 
Method Summary
 Socket bind(String url)
           
 Socket connect(String url)
          Connect to a url
 SocketBuilder subscrible(byte[] data)
           
 
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

SubSocketBuilder

public SubSocketBuilder(ManagedContext context)
Method Detail

subscrible

public SocketBuilder subscrible(byte[] data)
Specified by:
subscrible in interface Subscribable

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.