Package com.yahoo.vespa.config
Class JRTConnection
java.lang.Object
com.yahoo.vespa.config.JRTConnection
- All Implemented Interfaces:
Connection
A JRT connection to a config server or config proxy.
- Author:
- Gunnar Gauslaa Bergem, hmusum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.yahoo.jrt.TargetThis is synchronized to avoid multiple ConfigInstances creating new targets simultaneously, if the existing target is null, invalid or has not yet been initialized.inthashCode()voidinvokeAsync(com.yahoo.jrt.Request request, Duration jrtTimeout, com.yahoo.jrt.RequestWaiter requestWaiter) voidinvokeSync(com.yahoo.jrt.Request request, Duration jrtTimeout) toString()
-
Constructor Details
-
JRTConnection
-
-
Method Details
-
invokeAsync
public void invokeAsync(com.yahoo.jrt.Request request, Duration jrtTimeout, com.yahoo.jrt.RequestWaiter requestWaiter) - Specified by:
invokeAsyncin interfaceConnection
-
invokeSync
- Specified by:
invokeSyncin interfaceConnection
-
getAddress
- Specified by:
getAddressin interfaceConnection
-
getTarget
public com.yahoo.jrt.Target getTarget()This is synchronized to avoid multiple ConfigInstances creating new targets simultaneously, if the existing target is null, invalid or has not yet been initialized.- Returns:
- The existing target, or a new one if invalid or null.
-
toString
-
equals
-
hashCode
public int hashCode()
-