Package zmq

Class Mailbox

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, IMailbox

    public final class Mailbox
    extends java.lang.Object
    implements IMailbox
    • Constructor Summary

      Constructors 
      Constructor Description
      Mailbox​(Ctx ctx, java.lang.String name, int tid)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.nio.channels.SelectableChannel getFd()  
      Command recv​(long timeout)  
      void send​(Command cmd)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • signaler

        private final Signaler signaler
      • sync

        private final java.util.concurrent.locks.Lock sync
      • active

        private boolean active
      • name

        private final java.lang.String name
      • errno

        private final Errno errno
    • Constructor Detail

      • Mailbox

        public Mailbox​(Ctx ctx,
                       java.lang.String name,
                       int tid)
    • Method Detail

      • getFd

        public java.nio.channels.SelectableChannel getFd()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object