Package org.jivesoftware.smack
Class SmackFuture.SocketFuture
- java.lang.Object
-
- org.jivesoftware.smack.SmackFuture<V,E>
-
- org.jivesoftware.smack.SmackFuture.InternalSmackFuture<java.net.Socket,java.io.IOException>
-
- org.jivesoftware.smack.SmackFuture.SocketFuture
-
- All Implemented Interfaces:
java.util.concurrent.Future<java.net.Socket>
,CallbackRecipient<java.net.Socket,java.io.IOException>
- Enclosing class:
- SmackFuture<V,E extends java.lang.Exception>
public static class SmackFuture.SocketFuture extends SmackFuture.InternalSmackFuture<java.net.Socket,java.io.IOException>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.SmackFuture
SmackFuture.InternalProcessStanzaSmackFuture<V,E extends java.lang.Exception>, SmackFuture.InternalSmackFuture<V,E extends java.lang.Exception>, SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,E extends java.lang.Exception>, SmackFuture.SocketFuture
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smack.SmackFuture
exception, result
-
-
Constructor Summary
Constructors Constructor Description SocketFuture(javax.net.SocketFactory socketFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectAsync(java.net.SocketAddress socketAddress, int timeout)
protected void
futureWait(long timeout)
-
Methods inherited from class org.jivesoftware.smack.SmackFuture.InternalSmackFuture
setException, setResult
-
Methods inherited from class org.jivesoftware.smack.SmackFuture
await, cancel, from, futureWait, get, get, getIfAvailable, getOrThrow, isCancelled, isDone, maybeInvokeCallbacks, onCompletion, onError, onSuccess
-
-
-
-
Constructor Detail
-
SocketFuture
public SocketFuture(javax.net.SocketFactory socketFactory) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
futureWait
protected void futureWait(long timeout) throws java.lang.InterruptedException
- Overrides:
futureWait
in classSmackFuture<java.net.Socket,java.io.IOException>
- Throws:
java.lang.InterruptedException
-
connectAsync
public void connectAsync(java.net.SocketAddress socketAddress, int timeout)
-
-