Top Inners Fields Constructors Methods
io.vertx.core.impl

pack-priv Class SharedClientHolder<C>

extends Object
implements Shareable
Class Inheritance
All Implemented Interfaces
io.vertx.core.shareddata.Shareable
Imports
io.vertx.core.Closeable, .Promise, .Vertx, io.vertx.core.shareddata.LocalMap, .Shareable, java.util.function.Function

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv final C
pack-priv final int
pack-priv final SharedClientHolder.Hook<C>

Constructor Summary

AccessConstructor and Description
pack-priv
SharedClientHolder(SharedClientHolder.Hook<C> hook, int count, C client)

Method Summary

Modifier and TypeMethod and Description
pack-priv static <C> C
createSharedClient(Vertx vertx, String clientKey, String clientName, CloseFuture closeFuture, Function<CloseFuture, C> supplier)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientback to summary
pack-priv final C client
countback to summary
pack-priv final int count
hookback to summary
pack-priv final SharedClientHolder.Hook<C> hook

Constructor Detail

SharedClientHolderback to summary
pack-priv SharedClientHolder(SharedClientHolder.Hook<C> hook, int count, C client)

Method Detail

createSharedClientback to summary
pack-priv static <C> C createSharedClient(Vertx vertx, String clientKey, String clientName, CloseFuture closeFuture, Function<CloseFuture, C> supplier)
io.vertx.core.impl back to summary

private Class SharedClientHolder.Hook<C>

extends Object
implements Closeable
Class Inheritance
All Implemented Interfaces
io.vertx.core.Closeable

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final CloseFuture
private final Vertx

Constructor Summary

AccessConstructor and Description
private
Hook(Vertx vertx, String clientKey, String clientName)

Method Summary

Modifier and TypeMethod and Description
public void
close(Promise<Void>
the promise to signal when close has completed
completion
)

Implements io.vertx.core.Closeable.close.

Close this resource, the completion promise must be notified when the operation has completed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientKeyback to summary
private final String clientKey
clientNameback to summary
private final String clientName
closeFutureback to summary
private final CloseFuture closeFuture
vertxback to summary
private final Vertx vertx

Constructor Detail

Hookback to summary
private Hook(Vertx vertx, String clientKey, String clientName)

Method Detail

closeback to summary
public void close(Promise<Void> completion)

Implements io.vertx.core.Closeable.close.

Doc from io.vertx.core.Closeable.close.

Close this resource, the completion promise must be notified when the operation has completed.

Parameters
completion:Promise<Void>

the promise to signal when close has completed

Annotations
@Override