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 java.lang.Object implements org.apache.sshd.common.io.IoWriteFutureNever signals a successful write completion and ignores all listeners
-
-
Field Summary
Fields Modifier and Type Field Description static EndlessWriteFutureINSTANCE
-
Constructor Summary
Constructors Constructor Description EndlessWriteFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sshd.common.io.IoWriteFutureaddListener(org.apache.sshd.common.future.SshFutureListener<org.apache.sshd.common.io.IoWriteFuture> listener)booleanawait(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options)booleanawaitUninterruptibly(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options)java.lang.ThrowablegetException()java.lang.ObjectgetId()booleanisDone()booleanisWritten()org.apache.sshd.common.io.IoWriteFutureremoveListener(org.apache.sshd.common.future.SshFutureListener<org.apache.sshd.common.io.IoWriteFuture> listener)org.apache.sshd.common.io.IoWriteFutureverify(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
-
-
-
-
Field Detail
-
INSTANCE
public static final EndlessWriteFuture INSTANCE
-
-
Method Detail
-
verify
public org.apache.sshd.common.io.IoWriteFuture verify(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options) throws java.io.IOException- Specified by:
verifyin interfaceorg.apache.sshd.common.future.VerifiableFuture<org.apache.sshd.common.io.IoWriteFuture>- Throws:
java.io.IOException
-
isDone
public boolean isDone()
- Specified by:
isDonein interfaceorg.apache.sshd.common.future.WaitableFuture
-
getId
public java.lang.Object getId()
- Specified by:
getIdin interfaceorg.apache.sshd.common.future.WaitableFuture
-
awaitUninterruptibly
public boolean awaitUninterruptibly(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options)- Specified by:
awaitUninterruptiblyin interfaceorg.apache.sshd.common.future.WaitableFuture
-
await
public boolean await(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options) throws java.io.IOException- Specified by:
awaitin interfaceorg.apache.sshd.common.future.WaitableFuture- Throws:
java.io.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:
removeListenerin interfaceorg.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:
addListenerin interfaceorg.apache.sshd.common.future.SshFuture<org.apache.sshd.common.io.IoWriteFuture>
-
isWritten
public boolean isWritten()
- Specified by:
isWrittenin interfaceorg.apache.sshd.common.io.IoWriteFuture
-
getException
public java.lang.Throwable getException()
- Specified by:
getExceptionin interfaceorg.apache.sshd.common.future.HasException
-
-