Class EndlessWriteFuture

java.lang.Object
org.apache.sshd.contrib.common.io.EndlessWriteFuture
All Implemented Interfaces:
org.apache.sshd.common.future.HasException, org.apache.sshd.common.future.SshFuture<org.apache.sshd.common.io.IoWriteFuture>, org.apache.sshd.common.future.VerifiableFuture<org.apache.sshd.common.io.IoWriteFuture>, org.apache.sshd.common.future.WaitableFuture, org.apache.sshd.common.io.IoWriteFuture

public class EndlessWriteFuture extends Object implements org.apache.sshd.common.io.IoWriteFuture
Never signals a successful write completion and ignores all listeners
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final EndlessWriteFuture
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.sshd.common.io.IoWriteFuture
    addListener(org.apache.sshd.common.future.SshFutureListener<org.apache.sshd.common.io.IoWriteFuture> listener)
     
    boolean
    await(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options)
     
    boolean
    awaitUninterruptibly(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options)
     
     
     
    boolean
     
    boolean
     
    org.apache.sshd.common.io.IoWriteFuture
    removeListener(org.apache.sshd.common.future.SshFutureListener<org.apache.sshd.common.io.IoWriteFuture> listener)
     
    org.apache.sshd.common.io.IoWriteFuture
    verify(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.sshd.common.future.VerifiableFuture

    verify, verify, verify, verify, verify, verify, verify

    Methods inherited from interface org.apache.sshd.common.future.WaitableFuture

    await, await, await, await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly
  • Field Details

  • Constructor Details

    • EndlessWriteFuture

      public EndlessWriteFuture()
  • Method Details

    • verify

      public org.apache.sshd.common.io.IoWriteFuture verify(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options) throws IOException
      Specified by:
      verify in interface org.apache.sshd.common.future.VerifiableFuture<org.apache.sshd.common.io.IoWriteFuture>
      Throws:
      IOException
    • isDone

      public boolean isDone()
      Specified by:
      isDone in interface org.apache.sshd.common.future.WaitableFuture
    • getId

      public Object getId()
      Specified by:
      getId in interface org.apache.sshd.common.future.WaitableFuture
    • awaitUninterruptibly

      public boolean awaitUninterruptibly(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options)
      Specified by:
      awaitUninterruptibly in interface org.apache.sshd.common.future.WaitableFuture
    • await

      public boolean await(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options) throws IOException
      Specified by:
      await in interface org.apache.sshd.common.future.WaitableFuture
      Throws:
      IOException
    • removeListener

      public org.apache.sshd.common.io.IoWriteFuture removeListener(org.apache.sshd.common.future.SshFutureListener<org.apache.sshd.common.io.IoWriteFuture> listener)
      Specified by:
      removeListener in interface org.apache.sshd.common.future.SshFuture<org.apache.sshd.common.io.IoWriteFuture>
    • addListener

      public org.apache.sshd.common.io.IoWriteFuture addListener(org.apache.sshd.common.future.SshFutureListener<org.apache.sshd.common.io.IoWriteFuture> listener)
      Specified by:
      addListener in interface org.apache.sshd.common.future.SshFuture<org.apache.sshd.common.io.IoWriteFuture>
    • isWritten

      public boolean isWritten()
      Specified by:
      isWritten in interface org.apache.sshd.common.io.IoWriteFuture
    • getException

      public Throwable getException()
      Specified by:
      getException in interface org.apache.sshd.common.future.HasException