public class DefaultDaemonConnector extends Object implements DaemonConnector
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECT_TIMEOUT |
| Constructor and Description |
|---|
DefaultDaemonConnector(DaemonRegistry daemonRegistry,
OutgoingConnector<Object> connector,
DaemonStarter daemonStarter) |
| Modifier and Type | Method and Description |
|---|---|
DaemonConnection |
connect(Spec<? super DaemonContext> constraint)
Connects to a daemon that matches the given constraint, starting one if required.
|
DaemonConnection |
createConnection() |
long |
getConnectTimeout() |
DaemonRegistry |
getDaemonRegistry() |
DaemonConnection |
maybeConnect(Spec<? super DaemonContext> constraint)
Attempts to connect to a daemon that matches the given constraint.
|
void |
setConnectTimeout(long connectTimeout) |
public static final int DEFAULT_CONNECT_TIMEOUT
public DefaultDaemonConnector(DaemonRegistry daemonRegistry, OutgoingConnector<Object> connector, DaemonStarter daemonStarter)
public void setConnectTimeout(long connectTimeout)
public long getConnectTimeout()
public DaemonRegistry getDaemonRegistry()
public DaemonConnection maybeConnect(Spec<? super DaemonContext> constraint)
DaemonConnectormaybeConnect in interface DaemonConnectorpublic DaemonConnection connect(Spec<? super DaemonContext> constraint)
DaemonConnectorconnect in interface DaemonConnectorpublic DaemonConnection createConnection()
createConnection in interface DaemonConnectorCopyright © 2013. All rights reserved