Class UnixDomainSocket

  • All Implemented Interfaces:
    IOFacade

    public class UnixDomainSocket
    extends java.lang.Object
    implements IOFacade
    Unix domain socket IO implementation for IPC.
    • Constructor Summary

      Constructors 
      Constructor Description
      UnixDomainSocket​(java.lang.String ipcSocketPath)  
      UnixDomainSocket​(java.lang.String ipcSocketPath, int bufferSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String read()  
      void write​(java.lang.String payload)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnixDomainSocket

        public UnixDomainSocket​(java.lang.String ipcSocketPath)
      • UnixDomainSocket

        public UnixDomainSocket​(java.lang.String ipcSocketPath,
                                int bufferSize)
    • Method Detail

      • write

        public void write​(java.lang.String payload)
                   throws java.io.IOException
        Specified by:
        write in interface IOFacade
        Throws:
        java.io.IOException
      • read

        public java.lang.String read()
                              throws java.io.IOException
        Specified by:
        read in interface IOFacade
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface IOFacade
        Throws:
        java.io.IOException