Package zmq
Class Mailbox
- java.lang.Object
-
- zmq.Mailbox
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class Mailbox extends java.lang.Object implements java.io.Closeable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.nio.channels.SelectableChannel
getFd()
Command
recv(long timeout)
(package private) void
send(Command cmd)
java.lang.String
toString()
-
-
-
Constructor Detail
-
Mailbox
public Mailbox(Ctx ctx, java.lang.String name, int tid)
-
-
Method Detail
-
getFd
public java.nio.channels.SelectableChannel getFd()
-
send
void send(Command cmd)
-
recv
public Command recv(long timeout)
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-