private class InternalStreamConnectionInitializer.CompoundAuthenticator extends java.lang.Object implements SingleResultCallback<java.lang.Void>
Modifier and Type | Field and Description |
---|---|
private SingleResultCallback<java.lang.Void> |
callback |
private ConnectionDescription |
connectionDescription |
private java.util.concurrent.atomic.AtomicInteger |
currentAuthenticatorIndex |
private InternalConnection |
internalConnection |
Constructor and Description |
---|
CompoundAuthenticator(InternalConnection internalConnection,
ConnectionDescription connectionDescription,
SingleResultCallback<java.lang.Void> callback) |
Modifier and Type | Method and Description |
---|---|
private void |
authenticateNext() |
private boolean |
completedAuthentication() |
void |
onResult(java.lang.Void result,
java.lang.Throwable t)
Called when the operation completes.
|
void |
start() |
private final InternalConnection internalConnection
private final ConnectionDescription connectionDescription
private final SingleResultCallback<java.lang.Void> callback
private final java.util.concurrent.atomic.AtomicInteger currentAuthenticatorIndex
CompoundAuthenticator(InternalConnection internalConnection, ConnectionDescription connectionDescription, SingleResultCallback<java.lang.Void> callback)
public void onResult(java.lang.Void result, java.lang.Throwable t)
SingleResultCallback
onResult
in interface SingleResultCallback<java.lang.Void>
result
- the result, which may be null. Always null if e is not null.t
- the throwable, or null if the operation completed normallypublic void start()
private boolean completedAuthentication()
private void authenticateNext()