|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zeromq.jzmq.sockets.SocketBuilder
public abstract class SocketBuilder
SocketBuilder
| Constructor Summary | |
|---|---|
SocketBuilder(ManagedContext context,
SocketType socketType)
|
|
| Method Summary | |
|---|---|
abstract Socket |
bind(String url)
|
abstract Socket |
connect(String url)
Connect to a url |
String |
getIdentity()
Return the identity of the socket |
long |
getLinger()
Returns the linger period in millis |
long |
getRecvHWM()
Returns the recv high water mark |
long |
getSendHWM()
|
SocketType |
getSocketType()
Returns the underlying socket type |
long |
getSwap()
Return the swap size in bytes |
SocketBuilder |
withIdentity(String identity)
Set the socket identity of the specified socket. |
SocketBuilder |
withLinger(long lingerMS)
Set the linger period for the specified socket. |
SocketBuilder |
withReceiveHWM(long receiveHWM)
The RECVHWM option shall set the high water mark (HWM) for inbound messages on the specified socket. |
SocketBuilder |
withSendHWM(long sendHWM)
|
SocketBuilder |
withSwap(long swapSize)
The swap option shall set the disk offload (swap) size for the specified socket. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketBuilder(ManagedContext context,
SocketType socketType)
| Method Detail |
|---|
public SocketType getSocketType()
public SocketBuilder withLinger(long lingerMS)
lingerMS - the linger period in millis
public long getLinger()
public SocketBuilder withIdentity(String identity)
identity - the identity
public String getIdentity()
public SocketBuilder withSwap(long swapSize)
swapSize - swap in bytes
public long getSwap()
public SocketBuilder withSendHWM(long sendHWM)
public long getSendHWM()
public SocketBuilder withReceiveHWM(long receiveHWM)
receiveHWM - recv high water mark
public long getRecvHWM()
public abstract Socket connect(String url)
throws Exception
Connectable
connect in interface Connectableurl - the url to connect to
Exception
public abstract Socket bind(String url)
throws Exception
bind in interface BindableException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||