public class AbstractServiceConnectionManager<S> extends Object implements ServiceConnectionManager<S>
Modifier and Type | Field and Description |
---|---|
protected Object |
lock |
protected S |
service |
Constructor and Description |
---|
AbstractServiceConnectionManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkNotClosed() |
void |
close()
Close the service connection manager.
|
void |
connect(S service)
Connect to the given service.
|
void |
disconnect()
Disconnect from the current service.
|
protected boolean |
isConnected() |
public final void connect(S service)
ServiceConnectionManager
connect
in interface ServiceConnectionManager<S>
service
- service to connect topublic final void disconnect()
ServiceConnectionManager
disconnect
in interface ServiceConnectionManager<S>
public final void close()
ServiceConnectionManager
close
in interface ServiceConnectionManager<S>
protected final void checkNotClosed()
protected final boolean isConnected()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.