Class BGPProtocolSessionPromise<S extends BGPSession>
java.lang.Object
io.netty.util.concurrent.AbstractFuture<S>
io.netty.util.concurrent.DefaultPromise<S>
org.opendaylight.protocol.bgp.rib.impl.protocol.BGPProtocolSessionPromise<S>
- All Implemented Interfaces:
io.netty.util.concurrent.Future<S>
,io.netty.util.concurrent.Promise<S>
,Future<S>
public final class BGPProtocolSessionPromise<S extends BGPSession>
extends io.netty.util.concurrent.DefaultPromise<S>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorDescriptionBGPProtocolSessionPromise
(@NonNull InetSocketAddress remoteAddress, int retryTimer, @NonNull io.netty.bootstrap.Bootstrap bootstrap, @NonNull BGPPeerRegistry peerRegistry) -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel
(boolean mayInterruptIfRunning) void
connect()
io.netty.util.concurrent.Promise
<S> setSuccess
(S result) Methods inherited from class io.netty.util.concurrent.DefaultPromise
addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cause, checkDeadLock, executor, get, get, getNow, isCancellable, isCancelled, isDone, isSuccess, notifyListener, removeListener, removeListeners, setFailure, setUncancellable, sync, syncUninterruptibly, toString, toStringBuilder, tryFailure, trySuccess
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
BGPProtocolSessionPromise
public BGPProtocolSessionPromise(@NonNull InetSocketAddress remoteAddress, int retryTimer, @NonNull io.netty.bootstrap.Bootstrap bootstrap, @NonNull BGPPeerRegistry peerRegistry)
-
-
Method Details
-
connect
public void connect() -
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancel
in interfaceio.netty.util.concurrent.Future<S extends BGPSession>
- Specified by:
cancel
in interfaceFuture<S extends BGPSession>
- Overrides:
cancel
in classio.netty.util.concurrent.DefaultPromise<S extends BGPSession>
-
setSuccess
- Specified by:
setSuccess
in interfaceio.netty.util.concurrent.Promise<S extends BGPSession>
- Overrides:
setSuccess
in classio.netty.util.concurrent.DefaultPromise<S extends BGPSession>
-