Class PipeShare

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class PipeShare
    extends Share
    • Method Detail

      • waitForPipe

        public boolean waitForPipe​(java.lang.String name)
        Requests that the server wait until an instance of the specified named pipe is available for connection.

        Name must not include the "\pipe\", so if the operation was on \\server\pipe\pipename, the name would be "pipename".

        This method requests that the server wait indefinitely. To specify a maximum wait time use waitForPipe(String, long, TimeUnit).

        Parameters:
        name - the name of the named pipe.
        Returns:
        true if an instance of the pipe is available; false if a timeout occurred
        Throws:
        SMBApiException - if an error occurs while waiting for an instance of the pipe to become available
      • waitForPipe

        public boolean waitForPipe​(java.lang.String name,
                                   long timeout,
                                   java.util.concurrent.TimeUnit timeoutUnit)
        Requests that the server wait until an instance of the specified named pipe is available for connection.

        Name must not include the "\pipe\", so if the operation was on \\server\pipe\pipename, the name would be "pipename".

        Parameters:
        name - the name of the named pipe.
        timeout - the amount of time to wait until an instance is available
        timeoutUnit - the unit in which timeout is specified
        Returns:
        true if an instance of the pipe is available; false if a timeout occurred
        Throws:
        SMBApiException - if an error occurs while waiting for an instance of the pipe to become available