T
- type of Service
that is reference countedpublic class ReferenceCountedSupplier<T extends com.google.common.util.concurrent.Service> extends Object
Service
and manages the lifecycle of the Service
instance.Constructor and Description |
---|
ReferenceCountedSupplier(String instanceName) |
Modifier and Type | Method and Description |
---|---|
T |
getOrCreate(com.google.common.base.Supplier<T> instanceSupplier) |
void |
release() |
Copyright © 2017 The Apache Software Foundation. All rights reserved.